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

百度的 https 正常吗?

  •  
  •   wwjvtwoex · Oct 9, 2017 · 4161 views
    This topic created in 3144 days ago, the information mentioned may be changed or developed.

    使用 Python 的 urllib2.urlopen('https://www.baidu.com').read()

    取到的 html 字符串


    <html><head><script>

    location.replace(location.href.replace("https://","http://"));

    </script></head><body><noscript>

    <meta http-equiv="refresh" content="0;url=http://www.baidu.com/">

    </noscript></body></html>


    这是正常的 https 站点吗?

    3 replies    2019-01-26 21:10:41 +08:00
    nazor
        1
    nazor  
       Oct 9, 2017   ❤️ 1
    ...你 user-agent 的问题
    wwjvtwoex
        2
    wwjvtwoex  
    OP
       Oct 9, 2017
    谢谢,回头学习一下
    dooonabe
        3
    dooonabe  
       Jan 26, 2019
    微信小程序访问 baidu 的接口时,android 端没有问题,ios 端也是会有上述这个问题,不太像 user-agent 的问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3063 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 12:22 · PVG 20:22 · LAX 05:22 · JFK 08:22
    ♥ Do have faith in what you're doing.