Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP traffic between asp.net mvc applications not visible to Fiddler

I have an ASP.NET MVC 4 application that needs to query another application to process requests. The MVC application makes it's request via REST. I can see the incoming HTTP request from the browser to the MVC application, but I can't see the outbound REST call from the MVC application to the REST application.

Both applications are running in IIS Express. I access the MVC application localhost:42001 and the REST application is using ASP.NET MVC WebAPI, listening at localhost:42002

How do I get the REST requests that are going to localhost:42002?

The request are making it to the REST application, I can also set and hit breakpoints in that code. I just can't see the traffic in Fiddler.

like image 826
Michael Avatar asked May 16 '13 16:05

Michael


People also ask

Why is my Fiddler not capturing traffic?

You should verify that FiddlerFiddlerTelerik AD (Телерик АД) is a Bulgarian company offering software tools for web, mobile, desktop application development, tools and subscription services for cross-platform application development. Founded in 2002 as a company focused on .https://en.wikipedia.org › wiki › TelerikTelerik - Wikipedia is set as a system proxy (when capturing is turned on) and that you have the administrative rights to update the OS system proxy, that the application you are monitoring is using the system proxy (and if not that it is explicitly set to use the Fiddler proxy), that you have enabled ...

Can Fiddler capture desktop application traffic?

You can use Fiddler to create an HTTP session of the monitored web application. In Fiddler, go to Tools > Fiddler Options > HTTPS. Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic. Go to File > Capture Traffic or press F12 to turn off capturing.

How do I record traffic in Fiddler IIS?

Setting up Fiddler for capturing requests Remove all sessions (select all items in the list, press the Delete key) Configure Fiddler to capture HTTPS traffic from the Tools | Fiddler Options... menu. Open the HTTPS tab and check Decrypt HTTPS traffic.


2 Answers

This is because Fiddler is a proxy. Your browser filters all the requests through Fiddler. Your web server is not proxy'ed through Fidder so web server to web server traffic won't go through Fiddler.

To get that to work, you'd need to tell your web application to use Fiddler's proxy. It seems like you can follow http://fiddler2.com/documentation/Configure-Fiddler/Tasks/ConfigureDotNETApp which has some information on how to configrue your web application to send all requests through the proxy.

Another idea, if you're willing to do some packet sniffing, you could use something like Wireshark and that would capture all traffic coming and going on your computer and then you could filter down to the information you need. This is overkill for what you're looking for, but could help at some point.

like image 116
Steven V Avatar answered Sep 21 '22 17:09

Steven V


By default, Fiddler proxies requests sent from the current user-account. ASP.NET runs in a different user's account. See http://fiddler2.com/blog/blog/2013/01/08/capturing-traffic-from-.net-services-with-fiddler for details on how to capture web traffic from service accounts like the one that IIS/ASP.NET are using.

like image 26
EricLaw Avatar answered Sep 18 '22 17:09

EricLaw