V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xssp
V2EX  ›  问与答

懂 PHP 或者 PY 的大佬,请问一个问题。

  •  
  •   xssp · 2017-12-29 21:31:32 +08:00 · 1040 次点击
    这是一个创建于 2322 天前的主题,其中的信息可能已经有所发展或是发生改变。

    p.sogou.com/su/QBrTA<跳转到其他网站>

    这种跳转如何实现? 原理是什么?看着怎么这么高端大气上档次?

    反向代理,还是 301,一直搞不懂这个,想了很久

    本人不怎么懂 php,希望能说清楚一点,谢谢大佬们。

    Kilerd
        1
    Kilerd  
       2017-12-29 23:53:54 +08:00
    chrome F12
    546669204
        2
    546669204  
       2017-12-30 08:56:50 +08:00   ❤️ 1
    HTTP/1.1 302 Found
    Server: nginx
    Date: Sat, 30 Dec 2017 00:55:48 GMT
    Content-Type: text/html; charset=utf-8
    Content-Length: 260
    Connection: keep-alive
    Set-Cookie: usid=TET7yJSVLR1na_o2; path=/; domain=.wap.sogou.com
    Location: http://sa.sogou.com/wxpage/sgs_video.php?vl=http%3A%2F%2Fvd1.bdstatic.com%2Fmda-hdhpnk1vc2ma3egn%2Fmda-hdhpnk1vc2ma3egn.mp4%3Fauth_key%3D1491815026-0-0-9ff5d5ae6a8b4d3fbb0e8236a7e95944%26bcevod_channel%3Dnwise_search&mat=0



    302 重定向
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5536 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.