#25486 [Opn->Fbk]: HTTP_Request(Response) problem with HTTP/1.1 100 Continue

From: Date: Sat, 11 Oct 2003 11:54:06 +0000
Subject: #25486 [Opn->Fbk]: 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-22588@lists.php.net to get a copy of this message
ID: 25486 Updated by: avb@php.net Reported By: ths at 4bconsult dot de -Status: Open +Status: Feedback Bug Type: PEAR related Operating System: irrelevant PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.pear.dev (#22588) next »