#34478 [Fbk->Opn]: Incorrect parsing of # character in location option
| From: | eric dot bourlon at gmail dot com | Date: | Tue, 13 Sep 2005 08:39:54 +0000 |
| Subject: | #34478 [Fbk->Opn]: Incorrect parsing of # character in location option | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-84982@lists.php.net to get a copy of this message | ||
ID: 34478
User updated by: eric dot bourlon at gmail dot com
Reported By: eric dot bourlon at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: Win XP
PHP Version: 5CVS-2005-09-12 (CVS)
New Comment:
I downloaded the last version but unfortunately observe the same
phenomenon.
Previous Comments:
------------------------------------------------------------------------
[2005-09-12 11:18:51] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-09-12 11:13:03] eric dot bourlon at gmail dot com
Description:
------------
I'm using SOAP in non WSDL mode. The location URL of my SOAP server
contains a # character. When calling a function on this server the
posted URL is truncated at the position of the # character.
This may be a supplementary case of the already reported bug 28702 but
not solved in last CVS.
Reproduce code:
---------------
$accountCode="1234";
$saidsoap=new SoapClient();
$SoapClient_options=array('location' =>
"http://my.server.be/cgi-bin/ws_account.cgi#ws_account",
'uri' =>
"http://my.server.be/cgi-bin/ws_account_view",
'proxy_host' => "192.168.157.111",
'proxy_port' => 8080,
'proxy_login' => "toto",
'proxy_password' => "tata",
'trace' => 1);
$saidsoap->__construct(NULL,SoapClient_options);
$input_param[]=new SoapParam($accountCode, "account_oidval");
$output_param=$saidsoap->__soapCall("wsACCOUNTVIEWIn",$input_param,$SoapClient_options);
Expected result:
----------------
POST http://my.server.be/cgi-bin/ws_account.cgi#ws_account
HTTP/1.1
Host: my.server.be
Connection: Keep-Alive
User-Agent: PHP SOAP 0.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://my.server.be/cgi-bin/ws_account"
Content-Length: 568
Proxy-Authorization: Basic ZWJvdXJsb246cHllMDIw
Actual result:
--------------
POST http://my.server.be/cgi-bin/ws_account.cgi
HTTP/1.1
Host: my.server.be
Connection: Keep-Alive
User-Agent: PHP SOAP 0.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://my.server.be/cgi-bin/ws_account"
Content-Length: 568
Proxy-Authorization: Basic ZWJvdXJsb246cHllMDIw
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34478&edit=1