From: bfra...@php.net Operating system: PHP version: 5.3.1 PHP Bug Type: SOAP related Bug description: Soap headers Authorization not allowed
Description: ------------ http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/ext/soap/php_http.c?r1=266886&r2=266885&pathrev=266886 This patch adds support to add headers into the http context, but doesn't allow the Authorization header for some reason. I added a patch to our 5.2 build that would add all headers in the http context and remove that patch in 5.3 because I noticed the above patch. Somebody at work is needing to add Authorization header to get OAuth stuff working, but for some reason it is not allowed. Here is a patch that will allow the Authorization header: http://www.brianfrance.com/software/php/soap_http_headers/soap_http_headers.diff Reproduce code: --------------- Here is an example script that requires the Authorization when used for the OAuth stuff. http://www.brianfrance.com/software/php/soap_http_headers/oauthsoapsample.php.txt -- Edit bug report at http://bugs.php.net/?id=50976&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50976&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50976&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50976&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50976&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50976&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50976&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50976&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50976&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50976&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50976&r=support Expected behavior: http://bugs.php.net/fix.php?id=50976&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50976&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50976&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50976&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50976&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50976&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50976&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50976&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50976&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50976&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50976&r=mysqlcfg