|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33716 HTTP authentication
Submitted: 2005-07-15 22:38 UTC Modified: 2005-07-24 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jacka at torreycommerce dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.0.4 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-07-15 22:38 UTC] jacka at torreycommerce dot com
It appears that the constructor of SoapClient is completely ignoring the second argument (options). I am trying to use basic http authentication, but regardless of what I send as the options parameter I get the same result.

Reproduce code:

$client = new SoapClient("http://wsdl_that_uses_basic_HTTP_auth",$woptions);

Expected result:
It should return no errors or warnings.

Actual result:
PHP Warning:  SoapClient::__construct(http://wsdl_that_uses_basic_HTTP_auth): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required
 in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8
PHP Warning:  I/O warning : failed to load HTTP resource in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from '' in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8
PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsdl_that_uses_basic_HTTP_auth' in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php:8
Stack trace:
#0 /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php(8): SoapClient->__construct('http://wsdl_that_uses_basic_HTTP_auth', Array)
#1 {main}
  thrown in /var/www/html/engine_cvs/misc_scripts/amazon/soaptest.php on line 8


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-16 22:17 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-07-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 09:01:28 2024 UTC