Forum Moderators: coopster
i am testing a payment gateway connection using curl.
it works fine on the live server, but it doesn't generate any response when i test it on my dev server. the dev server is an exact mirror setup of the live server, except that i have no fqdn - i have just set up the hosts file to alias a made up name to the local IP (192.168.x.x) of the site.
the curl functions are
$ch = curl_init($URL);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($ch);
curl_close($ch);
$resp is completely empty?
(the same code works perfectly on the live server)
any suggestions?
many thanks
firewall logs to look for blocked requests
errors in some internal service, maybe curl is dying siently, nothing more aggravating than a service dying with out letting out a scream first ;)
I also printed this last week while working on a curl script
[ca.php.net...]
gives a nice comprehensive list of options to use.
CURLOPT_VERBOSE could help.