#33716 [NEW]: HTTP authentication

From: Date: Fri, 15 Jul 2005 20:38:31 +0000
Subject: #33716 [NEW]: HTTP authentication
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81911@lists.php.net to get a copy of this message
From: jacka at torreycommerce dot com Operating system: linux PHP version: 5.0.4 PHP Bug Type: SOAP related Bug description: HTTP authentication Description: ------------ 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: --------------- $woptions['soap_version']=SOAP_1_2; $woptions['login']=""; $woptions['password']=""; $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 'http://merchant-api-qa.amazon.com/gateway/merchant-interface-mime' 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 -- Edit bug report at http://bugs.php.net/?id=33716&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33716&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33716&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33716&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33716&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33716&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33716&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33716&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33716&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33716&r=support Expected behavior: http://bugs.php.net/fix.php?id=33716&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33716&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33716&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33716&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33716&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33716&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33716&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33716&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33716&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33716&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33716&r=mysqlcfg

« previous php.bugs (#81911) next »