W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2008

Re: HTTP 301 responses for POST

From: Cyrus Daboo <cyrus@daboo.name>
Date: Tue, 23 Dec 2008 11:53:10 -0500
To: Julian Reschke <julian.reschke@gmx.de>, yngve@opera.com
cc: ietf-http-wg@w3.org
Message-ID: <7B93F20A5C9115D006779295@socrates.local>

Hi Julian,

--On December 23, 2008 2:24:21 PM +0100 Julian Reschke 
<julian.reschke@gmx.de> wrote:

>>
>> The 301 and 302 sections of HTTPbis seems to make the implicit, or
>> perhaps not clearly stated, assumption that the new request shall use
>> the same method as the request triggering the response.
>
> Just for the record: this text hasn't been changes since RFC2616...

The current "Note" for 301 is:

      Note: When automatically redirecting a POST request after
      receiving a 301 status code, some existing HTTP/1.0 user agents
      will erroneously change it into a GET request.

The reality is that it is not just HTTP/1.0 user agents that do this now 
but also HTTP/1.1. I think we need to reflect this reality more clearly 
(e.g., just remove the text "HTTP/1.0").

BTW this behavior is encouraged not only by user agents but also HTTP 
client libraries that do it. e.g. check out the note in the Python 
documentation: 
<http://www.python.org/doc/2.5/lib/http-redirect-handler.html>.

-- 
Cyrus Daboo
Received on Tuesday, 23 December 2008 16:53:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:50:58 GMT