Here is the function:
Code: Select all
function TransmitHTTPRequest($postRequest){
$ch=curl_init($this->_sURL);
if(!$ch)die(sprintf('Error1 [%d]: %s',curl_errno($ch),curl_error($ch)));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$postRequest);
curl_setopt($ch, CURLOPT_HEADER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_SSLVERSION,3);
$http_response = curl_exec($ch);
if(!$http_response)die(sprintf('Error2 [%d]: %s',curl_errno($ch),curl_error($ch)));
curl_close($ch);
if($this->_debug)echo "<BR><BR><b>Data received from server:</b><BR><BR>$http_response";
return $http_response;
} //END TransmitHTTPRequestLike I said works on my server and other servers, but this one doesn't play nice.
FYI,
Windows NT WEBSERVER 5.2
PHP Version 5.2.0
cURL Information libcurl/7.14.0 OpenSSL/0.9.8d zlib/1.2.3
Any help with this error would be greatly appreciated.
Tim