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

WordPress Trac noreply at wordpress.org
Thu Mar 21 12:16:45 UTC 2013


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

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 Added some unit tests in [attachment:17588.unit-tests.diff]. Tests curl,
 fsockopen and streams for the request method when POSTing to the
 redirection script. Makes sure it returns GET for 302 and 303, and POST
 for 301 and 307. It works well for fsockopen with the applied patch, but
 fails for curl and streams when doing a 302 redirect :(

 [attachment:17588.diff] is wonderboymusic's patch refreshed against trunk.

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


More information about the wp-trac mailing list