httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
wencan
V2EX  ›  HTTP

HTTP 协议 HEAD 请求,会有查询字符串吗?

  •  
  •   wencan · Nov 21, 2022 · 1835 views
    This topic created in 1271 days ago, the information mentioned may be changed or developed.
    HEAD 请求,用得较少。
    HEAD 似乎就是 GET 去掉响应 Body
    但我没找到地方讲 HEAD 会不会跟 GET 一样,有查询字符串。
    如果有,麻烦给个 existed 的例子

    如果其它方法,也会有查询字符串,请指教
    3 replies    2022-11-21 20:37:18 +08:00
    ss098
        1
    ss098  
       Nov 21, 2022
    查询字符串是指 Query String 吗,任何 HTTP 方法都有 Query String 的,它是 URL 的一部分。
    eason1874
        2
    eason1874  
       Nov 21, 2022
    有查询字符串,HEAD 跟 GET 唯一区别就是服务器不提供响应主体

    想知道各种方法的区别,找 RFC 看下就知道了
    arischow
        3
    arischow  
       Nov 21, 2022
    > The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.

    https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.