V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lil460982475
V2EX  ›  浏览器

谷歌浏览器使用百度抽风

  •  
  •   lil460982475 · 2017-03-03 16:08:33 +08:00 · 3653 次点击
    这是一个创建于 2608 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大佬们有没有遇到过, chrome 进入百度,谷歌浏览器提示一个红色的不安全,然后一直在进行重复请求,但就是进不去百度页面。

    每次都会发起两次请求,其中一次的请求信息:

    Request URL:http://www.baidu.com/
    Request Method:GET
    Status Code:307 Internal Redirect
    

    Response Headers :

    Location:https://www.baidu.com/
    Non-Authoritative-Reason:HSTS
    

    然后这种情况,如果我清理整个浏览器的缓存,重新请求就没问题了。但是隔一段时间又出现

    请教如何根治? PS :第一次发帖,有误请见谅

    8 条回复    2017-03-03 20:44:41 +08:00
    RE
        1
    RE  
       2017-03-03 16:21:39 +08:00
    第一次是打开 http 然后浏览器根据缓存帮你跳转到 https ,
    你试试直接访问 https://www.baidu.com/ 呢?
    如果证书错误,是不是开了什么代理,或者抓包软件,没设置好 SSL
    morethansean
        2
    morethansean  
       2017-03-03 16:36:38 +08:00
    看下面一个请求呢?
    lil460982475
        3
    lil460982475  
    OP
       2017-03-03 17:38:55 +08:00
    @RE 直接访问 https 的也不行,然后没开代理,也没用抓包软件
    lil460982475
        4
    lil460982475  
    OP
       2017-03-03 17:40:29 +08:00
    @morethansean 第二个请求是正常的

    Request URL:https://www.baidu.com/
    Request Method:GET
    Status Code:200 OK
    Remote Address:14.215.177.37:443

    Request Headers :

    Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Accept-Encoding:gzip, deflate, sdch, br
    Accept-Language:zh-CN,zh;q=0.8,en;q=0.6
    Connection:keep-alive
    Cookie:BAIDUID=957B9E4731EA7240B692FD3C2F1A1C53:FG=1; BIDUPSID=957B9E4731EA7240B692FD3C2F1A1C53; PSTM=1487812410; BD_UPN=12314353; BD_CK_SAM=1; PSINO=6; H_PS_PSSID=1457_21095_22035_22173_22074; BDSVRTM=0
    Host:www.baidu.com
    Upgrade-Insecure-Requests:1
    User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
    morethansean
        5
    morethansean  
       2017-03-03 17:45:26 +08:00
    不是我的意思是,你不是说一直打不开百度吗?第一次的请求不重要,重要的是看看为什么第二次那个请求没能够正常。
    lil460982475
        6
    lil460982475  
    OP
       2017-03-03 17:49:05 +08:00
    @morethansean

    Sorry ,有一点我也刚看到。。。。突然发现第二次返回的 Response 是个死循环。。。我不知道为什么会这样

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Refresh" content="0;URL=http://www.baidu.com/" />
    </head>
    </html>
    lil460982475
        7
    lil460982475  
    OP
       2017-03-03 19:26:52 +08:00
    终于找到了一种方式,先试试: http://blog.csdn.net/mengke1124/article/details/52766270
    234235
        8
    234235  
       2017-03-03 20:44:41 +08:00
    更新一下 Chrome 试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2889 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:20 · PVG 23:20 · LAX 08:20 · JFK 11:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.