[wp-trac] [WordPress Trac] #17588: fsockopen performs a POST request to a redirected location

WordPress Trac wp-trac at lists.automattic.com
Fri May 27 09:30:08 UTC 2011


#17588: fsockopen performs a POST request to a redirected location
--------------------------+-----------------------------
 Reporter:  dd32          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  HTTP          |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+-----------------------------

Comment (by dd32):

 I'm not surprised it's a mess with browser support.. hopefully that's just
 old data though and modern browsers handle it better.

 It's worthwhile mentioning here, We don't follow the spec either with
 redirects as it is; We currently manually redirect on any location header
 being present, whereas, we should generally only redirect on it under
 certain response codes..

 In the interest of potentially working with various API interfaces, I
 think it's best to support this the best we can.. Even if this only means
 we make fsockopen perform to the same rules as curl/streams use internally
 (even if they turn out to be technically wrong in some cases)

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


More information about the wp-trac mailing list