curl-and-php
curl_exec repsonse over https is Intermittent
Date: Thu, 19 Feb 2004 17:22:58 -0500
I am using PHP and CURL to send/recevie XML data from a website using https. The response is Intermittent. Some times I get the response right away. Some time I dont get the response, and it times out. Does any one have this problem?
PHP version : mod_php4-4.3.4_2,1
Curl version ; curl-7.10.7
Open SSL version is : openssl-0.9.7b_1
Please shed some light on this, so that I can continue building my site.
Here is the code I am trying.....
$httpURL = https://www.mysite.com/;
curl_setopt ($ch, CURLOPT_URL,$httpURL);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 1);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, $httpHeaders ); // Set the Headers
curl_setopt($ch, CURLOPT_POST, 1); // POST Method
curl_setopt($ch, CURLOPT_POSTFIELDS, $httpBody); //My XML Request
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, '1');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$httpResponse = curl_exec ($ch); //Send the request
Thanks in Advance
Paddy
Received on 2004-02-19