[wp-trac] [WordPress Trac] #17490: cURL fails with timeout when posting to a location that redirects

WordPress Trac wp-trac at lists.automattic.com
Sat May 28 01:36:37 UTC 2011


#17490: cURL fails with timeout when posting to a location that redirects
--------------------------+-----------------------------
 Reporter:  simsmaster    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  HTTP          |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by dd32):

 > It looks like the issue is the PHP implementation of cURL keeps the same
 Content-Type request header and recalculates the Content-Length for the
 GET.

 Close, It's not recalculating the Content-Length header, which is the
 problem. It just uses all the headers specified for the following
 requests.

 That patch looks like it will work (aside from the fact I don't think
 it'll abide by max redirects = 1). It does however make sense to me to
 tell curl not to follow redirects at all and just handle it ourself, since
 we already have to do that for safe mode. If we add another branch for
 posts, thats 3 possible locations for redirection handling that could
 break.

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


More information about the wp-trac mailing list