PUT参数如何传递给页面? [英] How are PUT parameters passed to a page?
问题描述
我找不到关于这个问题的准确答案:
I can't find a precise answer on that question :
PUT发送的参数是在URL中还是在HTTP头中传递的?
Are parameters which are sent by PUT passed in the URL, or in the HTTP header ?
我认为这是HTTP标头,但是当我使用PUT方法提交表单时,它会将参数附加到URL!
I think it's the HTTP header, but when I submit my form with the PUT method, it appends the parameters to the URL !
推荐答案
PUT发送的参数是在URL中传递的,还是在HTTP头中传递的?
Are parameters which are sent by PUT passed in the URL, or in the HTTP header ?
不是标题。它与POST相同 - URL或请求的正文。唯一的区别是正在使用的HTTP动词,当然还有它附带的语义(更新服务器上的资源)。
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).
这篇关于PUT参数如何传递给页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!