php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25486 HTTP_Request(Response) problem with HTTP/1.1 100 Continue
Submitted: 2003-09-11 05:09 UTC Modified: 2003-10-11 09:11 UTC
From: ths at 4bconsult dot de Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.3.3 OS: WIN
Private report: No CVE-ID: None
 [2003-09-11 05:09 UTC] 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"?
...



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-11 07:54 UTC] 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-10-11 09:11 UTC] ths at 4bconsult dot de
Works now as expected. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 15:01:30 2024 UTC