From: Dmitry Stogov Date: Wed, 1 Dec 2004 16:59:23 +0000 (+0000) Subject: Fixed bug #30359 (SOAP client requests have no port in "Host" field ). X-Git-Tag: php-5.0.3RC2~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a847d3a9dddf20d4312ce467d51c87fb77486423;p=php Fixed bug #30359 (SOAP client requests have no port in "Host" field ). --- diff --git a/NEWS b/NEWS index b8ba25bd15..b45de309c8 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,8 @@ PHP NEWS - Fixed bug #30375 (cal_info() does not work without a parameter). (Ilia) - Fixed bug #30362 (stream_get_line() not handling end string correctly). (Ilia) +- Fixed bug #30359 (SOAP client requests have no port in "Host" field ). + (Dmitry) - Fixed bug #30356 (str_ireplace() does not work on all strings). (Ilia) - Fixed bug #30344 (Reflection::getModifierNames() returns too long strings). (Marcus) diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index ed2813abb7..07b11eae74 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -380,6 +380,10 @@ try_again: 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_appendc(&soap_headers, ':'); + smart_str_append_unsigned(&soap_headers, phpurl->port); + } smart_str_append_const(&soap_headers, "\r\n" "Connection: Keep-Alive\r\n" /*