From:             
Operating system: Any
PHP version:      5.3.5
Package:          SOAP related
Bug Type:         Bug
Bug description:"user_agent" not in HTTP requests for proxied requests, even if 
set in $options

Description:
------------
In a manner similar to #50489, the "user_agent" (or default PHP User-Agent
string) should be included in the HTTP headers when connecting through a
proxy server.



Some proxy servers refuse tunneling unless a User-Agent is provided, but
the SOAP extension doesn't include one event if the "user_agent" value is
provided in the option headers.

Test script:
---------------
<?php



$client = new SoapClient("/path/to/some/wsdl.xml",

  array( 

    'classmap' => $CLASSMAP,

    'trace' => false,

    'user_agent' => 'PHP',

    'proxy_host' => 'cie-vproxy.cie.etat.lu',

    'proxy_port' => 80,

  )

);



/* ... */



$client->request()



Expected result:
----------------
The script should connect to the proxy server and send the request with a
"User-Agent: PHP" header.

Actual result:
--------------
The request doesn't contain a "User-Agent" header and the proxy refuses to
tunnel the request.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53718&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53718&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53718&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53718&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53718&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53718&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53718&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53718&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53718&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53718&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53718&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53718&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53718&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53718&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53718&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53718&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53718&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53718&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53718&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53718&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53718&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53718&r=mysqlcfg

Reply via email to