Can I use HTTP PUT to submit form data?

A simple question: everyone knows that you can receive POST data in an HTML form on the server, and the browser will process the serialization of the data in the form.

However, is it possible to do this using the verb PUT? Either through Javascript, or some other means.

+3
source share
2 answers

No. Section 9.6 of RFC 2616 states that the URI belongs to a resource that should be placed, and the web server should not use it in relation to any other resource. That way, although technically you can build a server process / script that will be, you should not depend on any server allowing this.

+1
source

Source: https://habr.com/ru/post/1730326/


All Articles