[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 08:56:34 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 | Keywords: needs-patch
--------------------------+----------------------------
Continuing off #17490.
Some background first: When you make a POST request, If you recieve a 3xx
w/ Location in response, The correct thing to do next, is to perform a GET
request to the new url, which is not what most people expect (Expecting
the class to follow the Location with a new POST).
fsockopen doesn't follow this spec, cURL and Streams do, Upon receiving
the redirection, fsockopen performs the exact same request against the new
location, whereas, it should disregard the post fields (and the Content-
length header) and perform a GET instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17588>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list