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

Re: [Fwd: Re: PUT and DELETE methods in 200 code]

From: Nathan <nathan@webr3.org>
Date: Sat, 02 Apr 2011 19:50:12 +0100
Message-ID: <4D976FE4.6010904@webr3.org>
To: Cameron Heavon-Jones <cmhjones@gmail.com>
CC: Julian Reschke <julian.reschke@gmx.de>, mike amundsen <mamund@yahoo.com>, public-html@w3.org, public-html-comments@w3.org, www-archive <www-archive@w3.org>
Cameron Heavon-Jones wrote:
> As an additional reason for a URI mime for encType, this would allow for DELETE methods to be initiated in the same manor as GETs, for example:
> 
> 
> <form encType="text/uri" method="DELETE" action="http://www.exmaple.com/users">
> 	<input name="hat-size" type="text"/>
> 	<input name="submit"/>
> </form>
>  
> 
> would result in the following request:
> 
> *** REQUEST
> DELETE /users?hat-size=small HTTP/1.1
> Host: www.example.org
> Accept: text/html
> 
> *** RESPONSE
> 200 OK HTTP/1.1
> Content-Type: text/html
> ...
> <html>
> ...
> <ul>
> <p>The following users have been deleted with hat-size=small:</p>
> <li>user-name: mike</li>
> <li>user-name: bob</li>
> <li>user-name: jim</li>
> </ul>
> ...
> <html>

Ahh, query string params for DELETE like we have w/ GET is v useful, I'd 
missed that.

Best,

Nathan
Received on Saturday, 2 April 2011 18:51:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:06 GMT