|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48244 SoapClient doRequest fails when proxy is used
Submitted: 2009-05-12 10:31 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: loki_angel at mail dot ru Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3CVS-2009-05-12 (snap) OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: loki_angel at mail dot ru
New email:
PHP Version: OS:


 [2009-05-12 10:31 UTC] loki_angel at mail dot ru
When a proxy is used with the following code. The proxy is not used.

Reproduce code:
	$connection_array=array(	"login"      => 'login',
								"password"   => 'pass',
								"exceptions" => 0,
								'proxy_host' => "",
								'proxy_port'=> 5190,
								'proxy_login'=> "proxy_login",
								'proxy_password' => "proxy_pass");

	$client = new SoapClient('', $connection_array);
	$client->__soapCall('method', array('var'));

Expected result:
SOAP-server response

Actual result:
<b>Fatal error</b>:  Uncaught SoapFault exception: [HTTP] Unauthorized in V:\home\site\www\class.php:13
Stack trace:
#0 [internal function]: SoapClient-&gt;__doRequest('&lt;?xml version=&quot;...', 'http://www.serv...', '', 1, 0)
#1 V:\home\photoscape.l\www\class.php(13): SoapClient-&gt;__soapCall('method', Array)
#2 {main}


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-17 11:25 UTC] yozik04 at gmail dot com
You can try to override __doRequest method 
( and use CURL for the request.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 08:03:39 2023 UTC