[wp-trac] [WordPress Trac] #16888: WP HTTP Curl transport is only handling some but not all redirect status codes.

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 18 22:31:56 UTC 2011


#16888: WP HTTP Curl transport is only handling some but not all redirect status
codes.
--------------------------+------------------------------
 Reporter:  hakre         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by dd32):

 * component:  General => HTTP


Comment:

 What other status codes are used with a Redirect (other than 301/302)?

 One option here is to redirect on any Location header, but in the case of
 the cURL library, IIRC, Redirections are handled internally by cURL, the
 modified code in the patch is mearly for error reporting purposes (If the
 final page is a 301/302, cURL gave up redirecting and returned a redirect
 response, If it falls past that, it should hit another error condition and
 return the raw error)

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


More information about the wp-trac mailing list