RE: X-HTTP-Method-Override request header

On Tuesday, November 05, 2013 1:28 PM, Robin Berjon wrote:
> On 05/11/2013 13:07 , Martynas Jusevičius wrote:
> > FYI: Jersey, which is an implementation of JAX-RS (Java API for
> > RESTful Web Services) supports X-HTTP-Method-Override as well:
> >
> https://jersey.java.net/apidocs/2.3.1/jersey/org/glassfish/jersey/serve
> r/filter/HttpMethodOverrideFilter.html
> >
> https://jersey.java.net/apidocs/1.17/jersey/com/sun/jersey/api/containe
> r/filter/PostReplaceFilter.html
> 
> So do Symfony and ExpressJS (with middleware), and in fact probably
> absolutely every single framework with any kind of serious usage
> available out there (and then some).
> 
> AFAIR this hack has been around in one form or other for at least a
> decade, I don't think it's going anywhere.

Well, often the only choice is to use such hacks. There have been various efforts [1-4] in adding support for other methods to HTML but unfortunately they were rejected. I agree, until this dilemma is solved in HTML those practices won't go anywhere as they are necessary.


Cheers,
Markus


[1] http://www.w3.org/TR/2010/WD-html5-20100624/association-of-controls-and-forms.html#attr-fs-method
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=10671
[3] https://www.w3.org/html/wg/tracker/issues/195
[4] http://amundsen.com/examples/put-delete-forms/


--
Markus Lanthaler
@markuslanthaler

Received on Tuesday, 5 November 2013 13:51:36 UTC