#25486 [Fbk->Csd]: HTTP_Request(Response) problem with HTTP/1.1 100 Continue
| From: | ths at 4bconsult dot de | Date: | Sat, 11 Oct 2003 13:11:58 +0000 |
| Subject: | #25486 [Fbk->Csd]: HTTP_Request(Response) problem with HTTP/1.1 100 Continue | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-22597@lists.php.net to get a copy of this message | ||
ID: 25486
User updated by: ths at 4bconsult dot de
Reported By: ths at 4bconsult dot de
-Status: Feedback
+Status: Closed
Bug Type: PEAR related
-Operating System: irrelevant
+Operating System: WIN
-PHP Version: Irrelevant
+PHP Version: 4.3.3
New Comment:
Works now as expected. Thanks.
Previous Comments:
------------------------------------------------------------------------
[2003-10-11 07:54:06] avb@php.net
Please test the CVS version of HTTP_Request (rev. 1.28)
HTTP_Response was changed quite a bit and it should now properly handle
100 Continue responses.
------------------------------------------------------------------------
[2003-09-11 05:09:57] ths at 4bconsult dot de
Description:
------------
HTTP_Response() currently do not handling multiple header blocks
respectively "HTTP/1.1 100 Continue" because it split headers and body
simply on the first occurrence of "\r\n\r\n".
----- response example ------------------------
HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0
Date: Thu, 11 Sep 2003 09:22:46 GMT
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 11 Sep 2003 09:22:46 GMT
Connection: close
Content-Type: text/xml
Content-Length: 1145
Content:
<?xml version="1.0" encoding="UTF-8"?>
...
-----------------------------------------------
On this response $this->_body should start with:
<?xml version="1.0" encoding="UTF-8"?>
...
but currently contains:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 11 Sep 2003 09:22:46 GMT
Connection: close
Content-Type: text/xml
Content-Length: 1145
Content:
<?xml version="1.0" encoding="UTF-8"?
...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25486&edit=1