#31781 [Opn->Bgs]: Should read until Connection is closed when HTTP version is 1.0

From: Date: Wed, 02 Feb 2005 08:29:54 +0000
Subject: #31781 [Opn->Bgs]: Should read until Connection is closed when HTTP version is 1.0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73246@lists.php.net to get a copy of this message
ID: 31781 Updated by: dmitry@php.net Reported By: joern_h at gmx dot net -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Windows 2000 PHP Version: 5.0.2 -Assigned To: +Assigned To: dmitry New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2005-01-31 16:32:02] 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} ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31781&edit=1

« previous php.bugs (#73246) next »