码迷,mamicode.com
首页 > Web开发 > 详细

Monitor traffic to localhost from IE or .NET

时间:2015-11-25 23:29:50      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

原文:http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/MonitorLocalTraffic

 

Monitor traffic to localhost from IE or .NET

To monitor traffic sent to http://localhost or http://127.0.0.1 from IE8 or below or the .NET Framework:

  • Use your machine name as the hostname instead of Localhost or 127.0.0.1

    For example, instead of

      http://localhost:8081/mytestpage.aspx

    Go to:

      http://machinename:8081/mytestpage.aspx
  • Use one of these addresses:

    -To use the IPv4 adapter (recommended for the Visual Studio test webserver, codename: Cassini):

      http://ipv4.fiddler

    -To use the IPv6 adapter:

      http://ipv6.fiddler

    -To use localhost in the Host header:

      http://localhost.fiddler
  • Click Rules > Customize Rules... and add this code to the Rules file:

    static function OnBeforeRequest(oSession:Fiddler.Session){
    if (oSession.HostnameIs("MYAPP")) { oSession.host = "127.0.0.1:8081"; }
    }

    Now, http://myapp will act as an alias for 127.0.0.1:8081

Monitor traffic to localhost from IE or .NET

标签:

原文地址:http://www.cnblogs.com/zhouxiuquan/p/4996173.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!