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

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:32 UTC