php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31781 Should read until Connection is closed when HTTP version is 1.0
Submitted: 2005-01-31 16:32 UTC Modified: 2005-02-02 09:29 UTC
From: joern_h at gmx dot net Assigned: dmitry (profile)
Status: Not a bug Package: SOAP related
PHP Version: 5.0.2 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joern_h at gmx dot net
New email:
PHP Version: OS:

 

 [2005-01-31 16:32 UTC] joern_h at gmx dot net
Description:
------------
The SOAP extension does not handle HTTP 1.0 responses which have no Content-Length or Connnection: CLose headers. The default behavior for HTTP 1.0 should be to read until the connection is closed.

This problem occurs when calling a method on Apache Axis' SimpleAxisServer.

Reproduce code:
---------------
Call a webservice runnning on Apache's SimpleAxisServer. This server returns only the following HTTP headers:

HTTP/1.0 200 OK
Content-Type: text/xml; charset=utf-8
Set-Cookie: 14
Set-Cookie2: 14

Expected result:
----------------
PHP should read the response until the connection is closed.

Actual result:
--------------
SoapFault exception: [HTTP] Error Fetching http body, No Content-Length, connection closed or chunked data in C:\home\sources\se-projekt-sem5\rv-2005-01-18\SimpleAxisTest2.php:16
Stack trace:
#0 C:\home\sources\se-projekt-sem5\rv-2005-01-18\SimpleAxisTest2.php(16): SoapClient->__call('<?xml version="...', 'http://127.0.0....', 'http://127.0.0....', 1)
#1 {main}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-02 09:29 UTC] dmitry@php.net
This bag is the same as http://bugs.php.net/bug.php?id=30329 that is already fixed in php-5.0.3 and above.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC