How are PUT parameters passed to a page?

风流意气都作罢 提交于 2019-11-30 11:02:40

Are parameters which are sent by PUT passed in the URL, or in the HTTP header ?

Not the headers. It's the same as POST - either the URL or the body of the request. The only difference is the HTTP verb being used and of course the semantics that come with it (UPDATE a resource on the server).

Your question seems to be about HTML forms. In which case the answer is: they do not support PUT (the browser still sends a POST request instead).

If it's not about HTML forms: it's up to you. For instance, in XmlHttpRequest you can use both.

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