|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-02 09:29 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 15 11:00:01 2025 UTC |
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}