[wp-trac] [WordPress Trac] #11888: The streams & fopen HTTP transport arn't sending headers that are passed to it (was: The streams & fopen HTTP transport arnt't sending headers that are passed to it)

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 14 12:06:31 UTC 2010


#11888: The streams & fopen HTTP transport arn't sending headers that are passed to
it
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:                         
     Type:  defect (bug)       |      Status:  new                    
 Priority:  normal             |   Milestone:  3.0                    
Component:  HTTP               |     Version:  2.9.1                  
 Severity:  normal             |    Keywords:  has-patch needs-testing
-------------------------------+--------------------------------------------

Comment(by dd32):

 With regards to the Streams transport.

 I cant seem to fault it under PHP 5.2.6 on windows.

 Eg:
 {{{
 wp_remote_get('http://localhost/test/headers.php', array( 'headers' =>
 array( 'Custom' => 'Headers', 'Authorization' => 'Basic 1234') ) )
 }}}

 results in
 {{{
 array(5) {
   ["headers"]=>
   array(6) {
     ["server"]=>   string(31) "Apache/2.2.14 (Win32) PHP/5.2.6"
   }
   ["body"]=>
   string(298) "


 array(5) {
   ["Host"]=>
   string(9) "localhost"
   ["User-Agent"]=>
   string(53) "WordPress/3.0-alpha; http://localhost/wordpress-trunk"
   ["Custom"]=>
   string(7) "Headers"
   ["Authorization"]=>
   string(10) "Basic 1234"
   ["Accept-Encoding"]=>
   string(29) "deflate;q=1.0, compress;q=0.5"
 }
 "
   ["response"]=> 200 OK....
   ["debug"]=>
   array(1) {
     ["transport"]=>
     string(15) "WP_Http_Streams"
   }
 }
 }}}

 Any suggestions of a  config change which could expose it denis? This is
 being tested on windows and just using {{{ <?php
 var_dump(apache_request_headers()); }}} in the requested page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11888#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list