php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27322 curl_exec repsonse over https is Intermittent
Submitted: 2004-02-19 17:18 UTC Modified: 2004-02-19 19:23 UTC
From: paddyatbefree at yahoo dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.3.4 OS: FreeBSD
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: paddyatbefree at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-02-19 17:18 UTC] 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

 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-19 19:23 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC