原文:http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/MonitorLocalTraffic
To monitor traffic sent to http://localhost or 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