zoukankan      html  css  js  c++  java
  • 使用fiddler模拟http get

    wireshark抓到一个http get数据包

    GET /Hero/zhCN/client/alert?build=zhCN&targetRegion=0&homeCountry= HTTP/1.1
    User-Agent: Blizzard Web Client
    Host: nydus.battle.net
    Cache-Control: no-cache

    HTTP/1.1 302 Found
    Date: Sat, 25 Nov 2017 03:15:30 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    Cache-Control: max-age=3600
    Location: http://INVALID.launcher.battle.net/service/Hero/alert/zh-cn
    Content-Length: 243
    Content-Type: text/html; charset=iso-8859-1

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>302 Found</title>
    </head><body>
    <h1>Found</h1>
    <p>The document has moved <a href="http://INVALID.launcher.battle.net/service/Hero/alert/zh-cn">here</a>.</p>
    </body></html>

    是一个302重定向。

    在composer选项卡中,选择get方法,并且把host组装到url中。协议可以在下拉列表中选择。

    http://nydus.battle.net//Hero/zhCN/client/alert?build=zhCN&targetRegion=0&homeCountry=

     执行完成后,会发现,得到一个http 302重定向。

    然后返回的url是http://invalid.launcher.battle.net/service/Hero/alert/zh-cn。对这个url做get请求,协议是http/1.1。

    GET http://invalid.launcher.battle.net/service/Hero/alert/zh-cn HTTP/1.1
    User-Agent: Blizzard Web Client
    Host: invalid.launcher.battle.net
    Cache-Control: no-cache

     这个请求执行后,是http 502。

  • 相关阅读:
    (整理)SQLServer_DBA 工具
    (转)winform Form 淡入淡出效果
    (转)SQLServer_T-SQL 语句执行时间的查询
    (整理)IIS 7 503 "service unavailable" errors
    (转载)C#中使用GUID
    (转载)SQL Server 2005 如何启用xp_cmdshell组件
    设计模式之适配器
    jaxb 组装及解析xml
    springMvc 简单搭建
    设计模式之工厂模式
  • 原文地址:https://www.cnblogs.com/chucklu/p/7895310.html
Copyright © 2011-2022 走看看