|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61525 SOAP functions require at least one space after HTTP header colon
Submitted: 2012-03-27 09:34 UTC Modified: 2013-09-30 12:28 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rkip at reprovinci dot nl Assigned:
Status: Open Package: SOAP related
PHP Version: 5.4.0 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
44 - 22 = ?
Subscribe to this entry?

 [2012-03-27 09:34 UTC] rkip at reprovinci dot nl
We were testing a SOAP connection and kept receiving the following error:

 Error Fetching http body, No Content-Length, connection closed or chunked data.

After looking for this error message in PHP's source, I found get_http_body() was 
looking for headers with a space after the colon:

 header = get_http_header_value(headers, "Content-Length: ");

This trailing space is no longer required (yet a single space is recommended) by 
the HTTP 1.1 specification. (

This issue should be easy to fix by removing the trailing space from the 12 or so 
calls to get_http_header_value().


61525-bugfix.patch (last revision 2012-03-29 07:01 UTC by joe at joegillotti dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-27 09:37 UTC] rkip at reprovinci dot nl
The returned header value could perhaps also be ltrimmed.
 [2013-09-30 12:28 UTC]
-Summary: PHP's HTTP functions require at least one space after HTTP header colon +Summary: SOAP functions require at least one space after HTTP header colon -Package: HTTP related +Package: SOAP related -Operating System: Windows 7, Debian, Ubuntu +Operating System:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 13:01:29 2024 UTC