#32326 [NEW]: HTTP header are checked case-sensitive, causing interoperability problems.
| From: | wolfgang dot glas at ev-i dot at | Date: | Tue, 15 Mar 2005 20:30:26 +0000 |
| Subject: | #32326 [NEW]: HTTP header are checked case-sensitive, causing interoperability problems. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76783@lists.php.net to get a copy of this message | ||
From: wolfgang dot glas at ev-i dot at
Operating system: SuSE-9.2
PHP version: 5.0.3
PHP Bug Type: SOAP related
Bug description: HTTP header are checked case-sensitive, causing interoperability problems.
Description:
------------
Using the SOAPClient in php-5.0.3 together with
mono-xsp as WebService provider, I get:
Fatal error: Uncaught SoapFault exception: [HTTP] Error
Fetching http body, No Content-Length, connection closed or
chunked data in /home/wglas/axis/php/MyService.php:5
The problem is the HTTP 1.0 respüopnse header from this
server:
*************
HTTP/1.0 200 OK\r\n
Response Code: 200
Server: Mono-XSP Server/1.0.6.0 Unix\r\n
Connection: Close\r\n
X-Powered-By: Mono\r\n
Date: Tue, 15 Mar 2005 20:05:31 GMT\r\n
Content-Type: text/xml; charset=utf-8\r\n
\r\n
**************
php-5.0.3 is upset by the caitalized word 'Close' in the
Connection header. Changing the strncmp() call in line 854
of php-5.0.3/ext/soap/php_http.c makes the whole thing
operable again. Please check the HTTPs header
interpretation
code in php_http.c for more case sensitivity problems.
TIA,
Wolfgang
Reproduce code:
---------------
?php
$client = new SoapClient("http://localhost:8080/hello.asmx?wsdl=0");
echo "count = ".$client->SampleMethod()."\n";
?>
--
Edit bug report at http://bugs.php.net/?id=32326&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32326&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32326&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32326&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32326&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32326&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32326&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32326&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32326&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32326&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32326&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32326&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32326&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32326&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32326&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32326&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32326&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32326&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32326&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32326&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32326&r=mysqlcfg