#27322 [Opn->Bgs]: curl_exec repsonse over https is Intermittent
| From: | iliaa@php.net | Date: | Fri, 20 Feb 2004 00:23:31 +0000 |
| Subject: | #27322 [Opn->Bgs]: curl_exec repsonse over https is Intermittent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-55201@lists.php.net to get a copy of this message | ||
ID: 27322
Updated by: iliaa@php.net
Reported By: paddyatbefree at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: FreeBSD
PHP Version: 4.3.4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
In all likelyhood this is a problem with the server on the
other end. If it is not then it is a problem with libcurl
library.
Previous Comments:
------------------------------------------------------------------------
[2004-02-19 17:18:46] paddyatbefree at yahoo dot com
Description:
------------
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27322&edit=1