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

关于 HTTP 状态码与代理 IP 的问题

  •  
  •   XiiLii · Oct 17, 2018 · 2097 views
    This topic created in 2789 days ago, the information mentioned may be changed or developed.

    如果我使用 IP 代理请求一个 URL,返回的是状态码是非 200 (如:301、302、304 等),能不能证明我使用的 ip 代理是可用的?

    因为我在想像 301、302、304 这些是否与服务器建立起连接了?如果建立连接了,是不是通过代理 ip 建立的连接,那这样是不是说明这个代理 IP 是可用的?

    如果代理 ip 本身是不可用的,我觉得是连接不上才对,应该抛出 ConnectionError 异常

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2855 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:48 · PVG 15:48 · LAX 00:48 · JFK 03:48
    ♥ Do have faith in what you're doing.