gpt4 book ai didi

http-headers - 使用 HEAD 请求 POST 数据

转载 作者:行者123 更新时间:2023-12-04 05:05:14 33 4
gpt4 key购买 nike

是否可以使用 HEAD 请求发送 POST 数据?

最佳答案

不,HEAD 请求不同于 POST 请求。 HEAD 请求不接受发布数据。来自 HTTP specification section 9.4 :

The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. This method can be used for obtaining metainformation about the entity implied by the request without transferring the entity-body itself. This method is often used for testing hypertext links for validity, accessibility, and recent modification.



由于 GET 请求不包含发布数据,因此 HEAD 请求也不包含。

关于http-headers - 使用 HEAD 请求 POST 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4529066/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com