[wp-trac] [WordPress Trac] #16855: HTTP API No Follow Redirection

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 18 12:36:26 UTC 2011


#16855: HTTP API No Follow Redirection
--------------------------+------------------------------
 Reporter:  TheDeadMedic  |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by cogmios):

 On the /foto/O/ one, something like this would be nicer:

 {{{
 #!php
 $header_parts = count(explode(' ', $tempheader));
 if ( false === strpos($tempheader, ':') ) {
  if($header_parts == 3) {
   list( , $response['code'],$response['message']) = explode(' ',
 $tempheader, 3);
  }
  continue;
 }
 }}}

 (when PHP error notices are on Xdbebug displays 2 A4's of error stack
 trace otherwise.)

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


More information about the wp-trac mailing list