From: sylvain dot pasche at camptocamp dot com
Operating system:
PHP version: 5.0.2
PHP Bug Type: SOAP related
Bug description: SOAP client requests have no port in "Host" field
Description:
------------
according to the HTTP 1.1 RFC, section 14.23:
" A "host" without any trailing port information implies the default port
for the service requested (e.g., "80" for an HTTP URL). "
This patch seems to corrects this:
--- php_http.c.orig 2004-10-08 10:46:50.000000000 +0200
+++ php_http.c 2004-10-08 10:44:10.000000000 +0200
@@ -382,6 +382,12 @@
smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"
"Host: ");
smart_str_appends(&soap_headers, phpurl->host);
+
+ if (phpurl->port != 80) {
+ smart_str_append_const(&soap_headers, ":");
+ smart_str_append_unsigned(&soap_headers,
phpurl->port);
+ }
+
smart_str_append_const(&soap_headers, "\r\n"
"Connection: Keep-Alive\r\n"
/*
--
Edit bug report at http://bugs.php.net/?id=30359&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30359&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30359&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30359&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30359&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30359&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30359&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30359&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30359&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30359&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30359&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30359&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30359&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30359&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30359&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30359&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30359&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30359&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30359&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30359&r=mysqlcfg