Why don't the modern browsers support PUT and DELETE form methods?

二次信任 提交于 2019-11-30 10:48:28

Some web frameworks (e.g. Ruby on Rails) get around that by including a hidden _method parameter in the form with the value of the "actual" method, e.g.:

<form action="/posts/xxxxx" method="POST">
    <input type="hidden" name="_method" value="DELETE">
    <input type="submit" value="delete">
</form>

The framework then rewrites the request on the server side before processing to use the value of the _method parameter as the HTTP method.

Don't know if this helps you.

HTML 4.01 supports only post and get, see http://www.w3.org/TR/html4/interact/forms.html#h-17.3 Not sure about other HTML specs.

Akshit Zaveri

Actually i did a very small amount of research & found this answer on other Stackexchange forum.

I know it's not a good answer to post a link but i don't know the exact answer. So, it's the only way you can solve your doubt.

https://softwareengineering.stackexchange.com/questions/114156/why-there-are-no-put-and-delete-methods-in-html-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!