php.net |  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: -
Votes:3
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: loki_angel at mail dot ru
New email:
PHP Version: OS:

 

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


Reproduce code:
---------------
<?
	$connection_array=array(	"login"      => 'login',
								"password"   => 'pass',
								'trace'=>1,
								"exceptions" => 0,
								'proxy_host' => "proxy.net",
								'proxy_port'=> 5190,
								'proxy_login'=> "proxy_login",
								'proxy_password' => "proxy_pass");

	$client = new SoapClient('http://server.com/class.wsdl', $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}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-17 11:25 UTC] yozik04 at gmail dot com
You can try to override __doRequest method 
(http://php.net/manual/en/soapclient.dorequest.php) and use CURL for the request.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC