Hacker News new | ask | show | jobs
by mscdex 3166 days ago
Alternative HTTP methods (only GET and POST are supported in HTML forms).

Also, there is the setting of HTTP headers which requires JavaScript.

1 comments

I just use a hidden field to handle that.

  <input type="hidden" name="_method" value="PATCH">
That doesn’t actually handle that however (you’re just telling a server that your get/post intends something else).

The server has to support it.