- From: Nathan <nathan@webr3.org>
- Date: Sat, 02 Apr 2011 19:50:12 +0100
- 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:32 UTC