[wp-trac] Re: [WordPress Trac] #4011: add global proxy support in options

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 22 09:34:19 GMT 2009


#4011: add global proxy support in options
-----------------------------+----------------------------------------------
 Reporter:  tmountjr         |       Owner:  jacobsantos                  
     Type:  feature request  |      Status:  new                          
 Priority:  normal           |   Milestone:  2.9                          
Component:  HTTP             |     Version:  2.2                          
 Severity:  normal           |    Keywords:  proxy has-patch needs-testing
-----------------------------+----------------------------------------------

Comment(by DD32):

 Problem with cURL:

 Doesnt look like you can rely upon the headers length returned from it for
 proxy requests.. Eg, Full document returned:
 {{{
 HTTP/1.0 200 Connection established
 Proxy-agent: CCProxy 6.64

 HTTP/1.1 200 OK
 Date: Sun, 22 Feb 2009 09:30:52 GMT
 Server: Apache/2.2.8 (CentOS)
 X-Powered-By: PHP/5.2.6
 Content-Length: 4
 Connection: close
 Content-Type: text/html; charset=UTF-8

 1563
 }}}

 $headerLength gets set to 190, which chops the headers off at the end of
 Content-Length, resulting in:

 Headers:
 {{{
 HTTP/1.0 200 Connection established
 Proxy-agent: CCProxy 6.64

 HTTP/1.1 200 OK
 Date: Sun, 22 Feb 2009 09:30:52 GMT
 Server: Apache/2.2.8 (CentOS)
 X-Powered-By: PHP/5.2.6
 Content-Length
 }}}

 Body:
 {{{
 : 4
 Connection: close
 Content-Type: text/html; charset=UTF-8

 1563
 }}}

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


More information about the wp-trac mailing list