A Fiddler extension to inspect network traffic in an n-tier DevForce application.
DevForce sends compressed binary messages between the EntityManager and the EntityServer. You can use this extension to inspect these messages, to help when debugging your n-tier and Silverlight applications.
Internet Explorer and the .NET Framework are hardcoded not to send requests for Localhost through any proxies, and as a proxy, Fiddler will not receive such traffic.
Update: This behavior was changed for Internet Explorer 9. IE9 allows Fiddler to proxy traffic sent to localhost or 127.0.0.1 without additional steps on your part.
The simplest workaround is to use your machine name as the hostname instead of Localhost or 127.0.0.1. So, for instance, rather than browsing to http://localhost:8081/mytestpage.aspx, instead enter the following in your browser address bar: http://machinename:8081/mytestpage.aspx.
Alternatively, instead of: http://localhost:1234/MyApp/..., browse to http://localhost.:1234/MyApp/... (it's subtle, but notice the extra dot after localhost).
... or, just use http://ipv4.fiddler to hit localhost on the IPv4 adapter,
... or use http://ipv6.fiddler to hit localhost on the IPv6 adapter.
This works especially well with the Visual Studio test webserver (codename: Cassini) because the test server only listens on the IPv4 loopback adapter.
Lastly, you could update your Fiddler Rules file like so:
C# | static function OnBeforeRequest(oSession:Fiddler.Session){ if (oSession.HostnameIs("MYAPP")) { oSession.host = "127.0.0.1:8081"; } } |
...and then just hit http://myapp.., which will act as an alias for 127.0.0.1:8081.
Note: You shouldn't ever encounter the "Localhost traffic not captured" problem with Firefox. The FiddlerHook add-on for Firefox removes "localhost" from the "bypass proxy" list when Fiddler is in "Capturing" mode.
Documentation for building custom extensions, like this one, can be found here. The source code for the DevForceFiddlerExtension is available for download from the link above. You can modify it to suit your needs.