Tracing internal traffic from .NET applications with Fiddler

By | March 29, 2017

Today I had an interesting situation. I had the need to see the requests and responses internal to my Asp application. Now normally one can use fiddler to see the requests and response to your application but how does one see http requests that the application might be making internally between itself and other components?

After a bit of googling i found the answer.

To trace http calls with fiddler inside of an asp.net application add the following to the web.config of the asp application.

<system.net>
<defaultProxy enabled ="true" useDefaultCredentials ="true">
<proxy autoDetect="False" bypassonlocal="False" proxyaddress="http://127.0.0.1:8888" usesystemdefault="False"></proxy>
</defaultProxy>
</system.net>

The configuration above will use fiddler as a proxy and you will be able to see the internal http traffic of your application.

Reference: http://www.telerik.com/blogs/capturing-traffic-from-.net-services-with-fiddler

Leave a Reply

Your email address will not be published.