News for hackers. Stuff that matters.
Re:The evolution of the web, and a eulogy for XHTML2 by sgeisler on Sunday October 27, 2019 @07:09AM (#21369019)
I once searched for a way to send PUT requests using HTML forms because I despise using JS for core functionality but still wanted to build a nice REST API. Somehow I stumbled across XForms which was part of XHTML2 and supports PUT and DELETE only to find out that no browser supports it.

Now I hope that the form extensions proposal [1] will gain some traction.

[1] http://cameronjones.github.io/form-http-extensions/index.htm...

Re:The evolution of the web, and a eulogy for XHTML2 by hlandau on Sunday October 27, 2019 @07:52AM (#21369156)
The most common "solution" for this is to add middleware on the server-side which accepts a form parameter "_method" which supercedes the real HTTP method. I believe Rails uses this.
Re:The evolution of the web, and a eulogy for XHTML2 by sgeisler on Sunday October 27, 2019 @05:33PM (#21372554)
I'm aware of this workaround, but it's still a sad state of affairs, especially since POSTs have to be handled with more care because they aren't idempotent. So the browser will warn the user if they really want to resend the query if something goes wrong the first time.