summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-06-10 09:07:09 +0000
committerDmitry Stogov <dmitry@php.net>2004-06-10 09:07:09 +0000
commit0282ad792a411e849a4425afdc4edc43848694bc (patch)
tree268fd3a6fdabd21b6af90db5f31e25822c19bb1f /ext/soap/php_http.c
parent622f7679f7ffa134b81c94001e1edfe6e8b91f9b (diff)
downloadphp-git-0282ad792a411e849a4425afdc4edc43848694bc.tar.gz
Fixed bug #28702 (SOAP does not parse WSDL service address correctly).
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 0d6982f81f..b37d507986 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -309,6 +309,10 @@ int send_http_soap_request(zval *this_ptr, char *buf, int buf_size, char *locati
smart_str_append_unsigned(&soap_headers, phpurl->port);
}
smart_str_appends(&soap_headers, phpurl->path);
+ if (phpurl->query) {
+ smart_str_appendc(&soap_headers, '?');
+ smart_str_appends(&soap_headers, phpurl->query);
+ }
smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"
"Host: ");
smart_str_appends(&soap_headers, phpurl->host);