|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
35 + 41 = ?
Subscribe to this entry?

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 11:01:37 2024 UTC