PHP Classes

http.php stops working

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  http.php stops working  >  (Un) Subscribe thread alerts  
Subject:http.php stops working
Summary:SendRequest() method hangs
Messages:12
Author:John Yiangos
Date:2005-05-10 06:02:07
Update:2007-12-30 18:59:35
 
  1 - 10   11 - 12  

  11. Re: http.php stops working   Reply   Report abuse  
Picture of Ali Khalil Ali Khalil - 2007-12-30 13:28:29 - In reply to message 9 from Manuel Lemos
Wow... this issue was driving me insane. I kept getting the following text repeating forever after the 'Request Body' header:

HTTP/1.1 100 Continue

I initially thought that it was the web page to which I was trying to submit information. But, after I read your post I updated the protocol variable to '1.0' which solved my problem.

$http->protocol_version="1.0";

I wanted to check on why I would still get this error although I have libcurl versions > 7.13.2. I tested the script out on two different versions which were 7.15.5 and 7.16.0. What do you suggest the problem might be?


  12. Re: http.php stops working   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-12-30 18:59:35 - In reply to message 11 from Ali Khalil
I cannot explain or fix bugs of the CURL library.

The class can connect to SSL servers using fsockopen function if you use PHP 4.3 or later and have OpenSSL extension enabled. The best I can do is to add an option to force the use of fsockopen even when Curl support is enabled. That way the class can send HTTP 1.1 requests.

 
  1 - 10   11 - 12