I have an integration with a third party that utilizes a SOAP API. On my current server AND my local environment, this works fine.
I recently deployed a new server and it seems that cURL isn't doing anything. *The code is identical on all three installations.
The "error" that I am seeing is no response at all (no response and no error, however, I can see that it is a "Resource").
After much trial and error, I tried creating a simple cURL example to test try to rule out other issues as the code itself is quite complex. My simple example, that also fails, is as follows:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "google.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
$err = curl_error($ch);
print_r($err);
echo $output;
curl_close($ch);
This does the same thing. On local, I get a "301 Moved" notice, on the new server, it is just a white screen.
I have confirmed that php has curl installed in via command line (php -m) and using phpinfo(); in my code. It is definitely enabled.
What would cause cURL to not have a response AND not have an error? My thought is a server setting, but I can't seem to find what might be causing this.