W3C home > Mailing lists > Public > public-html@w3.org > April 2011

Re: PUT and DELETE methods in 200 code

From: Nathan <nathan@webr3.org>
Date: Tue, 05 Apr 2011 19:34:07 +0100
Message-ID: <4D9B609F.8080103@webr3.org>
To: Julian Reschke <julian.reschke@gmx.de>
CC: Cameron Heavon-Jones <cmhjones@gmail.com>, mike amundsen <mamund@yahoo.com>, public-html@w3.org
Julian Reschke wrote:
> So, when you serve the form at
> 
>   http://www.example.com/user/123?edit=true
> 
> where will it direct the PUT to, and what representation would you 
> expect in the PUT result?

TBH I'd expect a POST.. however, PUT to some other URI like 
http://www.example.com/user/123?latest and then a 200 OK which returned 
the updated http://www.example.com/user/123 and that CL, or the edit 
view again http://www.example.com/user/123?edit=true and that CL.

Obviously that setup would have a load of representation juggling and 
out of band knowledge required, and also require the PUT to affect 
multiple "resources", and it could be done w/ POST (which afaict HTML 
forms were designed from the ground up to either construct a message 
body for POSTing or to construct a query string for GETting (or 
DELETEing I guess) - but that's a different matter orthogonal to this 
proposal and discussion it seems).

Best,

Nathan
Received on Tuesday, 5 April 2011 18:34:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:24 UTC