Monitor traffic to localhost from IE or .NET

本文介绍如何使用Fiddler工具监测来自IE8及更低版本或.NET Framework发往http://localhost或http://127.0.0.1的网络流量。通过替换主机名、使用特定地址或修改规则文件来实现监测。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文: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

转载于:https://www.cnblogs.com/zhouxiuquan/p/4996173.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值