#21739 [NEW]: remote port number not sent in host header

From: Date: Sun, 19 Jan 2003 03:15:52 +0000
Subject: #21739 [NEW]: remote port number not sent in host header
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12591@lists.php.net to get a copy of this message
From: warren@konkel.net Operating system: linux PHP version: 4.3.0 PHP Bug Type: PEAR related Bug description: remote port number not sent in host header I noticed that when giving WSDL the URL of a dynamically generated WSDL (such as Java's tomcat web services server), the server was returning a port number of 80 rather than 8080... I looked into and found out that the request sent to the server doesn't include the remote port... this fixed it: on line 191 of HTTP/Request.php, currently there is: ------------------------------------------------------ if (HTTP_REQUEST_HTTP_VER_1_1 == $this->_http) { $this->addHeader('Host', $this->_url->host); } ------------------------------------------------------ it SHOULD be: ------------------------------------------------------ if (HTTP_REQUEST_HTTP_VER_1_1 == $this->_http) { if ($this->_url->port) { $this->addHeader('Host', $this->_url->host . ":" . $this->_url->port); } else { $this->addHeader('Host', $this->_url->host); } } ------------------------------------------------------ -Warren -- Edit bug report at http://bugs.php.net/?id=21739&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21739&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21739&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21739&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21739&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21739&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21739&r=support Expected behavior: http://bugs.php.net/fix.php?id=21739&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21739&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21739&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21739&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21739&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21739&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21739&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21739&r=gnused

« previous php.pear.dev (#12591) next »