Hi,
The HTML5 form spec currently only allows for GET and POST actions when submitting forms. Is there any functionality to allow me to detect a POST request is actually a PUT or a DELETE request (via a hidden form field, for example?).
One workaround I'm considering is treating PUTs as POSTs in all but name; PUTs are made to urls like /item/1, whereas new items are POSTed to /item so different resources for each URL could apply. Code bloat would also apply, plus much swearing in the code comments trying to explain all this.
Has anyone else used Liberator to handle PUT-analagous requests from web forms? Is there a standard way of doing it?
For reference there's a discussion of the absence of PUT & DELETE actions from HTML5 forms here:
Also some other web frameworks allow overriding of the method type with form or url parameters; see the second half of
Thanks,
Oliver.