#34478 [NEW]: Incorrect parsing of # character in location option
| From: | eric dot bourlon at gmail dot com | Date: | Mon, 12 Sep 2005 09:13:05 +0000 |
| Subject: | #34478 [NEW]: Incorrect parsing of # character in location option | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-84917@lists.php.net to get a copy of this message | ||
From: eric dot bourlon at gmail dot com
Operating system: Win XP
PHP version: 5CVS-2005-09-12 (CVS)
PHP Bug Type: SOAP related
Bug description: Incorrect parsing of # character in location option
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 bug report at http://bugs.php.net/?id=34478&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34478&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34478&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34478&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34478&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34478&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34478&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34478&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34478&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34478&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34478&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34478&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34478&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34478&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34478&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34478&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34478&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34478&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34478&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34478&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34478&r=mysqlcfg