开发者

Is it possible to use an HTTP PUT to submit form data?

Simple question: everyone knows you can POST data in a HTML form to the server, and the browser will handle serializing the data in the form.

However, is it possible to do this using a PUT开发者_JAVA技巧 verb instead? Either through Javascript or some other means.


No. Section 9.6 on RFC 2616 states that the URI is of the resource to be put, and the web server must not use it towards any other resource. So, while technically you may be able to construct a server process/script that would, you should not depend on any server allowing that.


Looks like you could http://www.wynia.org/wordpress/2007/03/not-just-get-and-post-http-put-and-delete-with-javascript/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜