#46760 [Opn->Csd]: SoapClient doRequest fails when proxy is used

From: Date: Mon, 05 Jan 2009 22:18:51 +0000
Subject: #46760 [Opn->Csd]: SoapClient doRequest fails when proxy is used
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132575@lists.php.net to get a copy of this message
 ID:               46760
 Updated by:       felipe@php.net
 Reported By:      iwan at iwex dot nl
-Status:           Open
+Status:           Closed
 Bug Type:         SOAP related
 Operating System: Linux (Unbuntu 8.10)
 PHP Version:      5.2.7
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in 5_2_9 (synced with 5_3)


Previous Comments:
------------------------------------------------------------------------

[2008-12-05 12:52:36] iwan at iwex dot nl

Description:
------------
When a proxy is used with the following code. The proxy is not used.

Problem is in that the proxy_port is a string type. When the port is
type casted to an int it will work.

Reproduce code:
---------------
$client = new SoapClient(null, array('proxy_host'     => "localhost",
                                            'proxy_port'     =>
'8080',
                                            'login'    => "user",
									        'password' => "test",
											'uri'            => 'mo:http://www.w3.org/',
											'location'       => 'http://some.url'));

echo $client->__doRequest('<?xml version="1.0"
encoding="UTF-8"?>...etc',
'http://some.url',
"add",
'1.2');

Expected result:
----------------
That the proxy will receive the request.

Actual result:
--------------
The call is done without the use of the proxy.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46760&edit=1



Thread (2 messages)

« previous php.bugs (#132575) next »