[wp-trac] [WordPress Trac] #18273: Flaw in WP_Http_Encoding::accept_encoding() or related.

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 28 06:17:09 UTC 2011


#18273: Flaw in WP_Http_Encoding::accept_encoding() or related.
--------------------------+------------------------------
 Reporter:  jfarthing84   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by jfarthing84):

 Headers just before $wp_http->_dispatch_request():

 {{{

 array(3) {
   ["Accept-Encoding"]=>
   string(29) "deflate;q=1.0, compress;q=0.5"
   ["Content-Type"]=>
   string(48) "application/x-www-form-urlencoded; charset=UTF-8"
   ["Content-Length"]=>
   int(54)
 }
 }}}


 Not sure exactly what you wanted here but this is the result of
 stream_get_meta_data() within WP_Http_Streams::request().


 {{{
 array(10) {
   ["wrapper_data"]=>
   array(10) {
     [0]=>
     string(15) "HTTP/1.1 200 OK"
     [1]=>
     string(35) "Date: Thu, 28 Jul 2011 06:14:57 GMT"
     [2]=>
     string(29) "Server: Apache/2.2.3 (CentOS)"
     [3]=>
     string(24) "X-Powered-By: PHP/5.2.10"
     [4]=>
     string(44) "Set-Cookie: _AVESTA_ENVIRONMENT=prod; path=/"
     [5]=>
     string(25) "Content-Encoding: deflate"
     [6]=>
     string(21) "Vary: Accept-Encoding"
     [7]=>
     string(18) "Content-Length: 41"
     [8]=>
     string(17) "Connection: close"
     [9]=>
     string(38) "Content-Type: text/html; charset=UTF-8"
   }
   ["wrapper_type"]=>
   string(4) "http"
   ["stream_type"]=>
   string(14) "tcp_socket/ssl"
   ["mode"]=>
   string(1) "r"
   ["unread_bytes"]=>
   int(0)
   ["seekable"]=>
   bool(false)
   ["uri"]=>
   string(45) "http://us2.api.mailchimp.com/1.3/?method=ping"
   ["timed_out"]=>
   bool(false)
   ["blocked"]=>
   bool(true)
   ["eof"]=>
   bool(true)
 }
 }}}

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


More information about the wp-trac mailing list