We're in the process of replacing an old (5+ years) Windows service application built with VS2005 that makes an HTTP GET call. There are several things that make this difficult (such as the web server is on the customer's network and we can't connect directly to it) and, unfortunately, we'd prefer not to take down the running system to replace it with a WinForm version that can be monitored by Fiddler. The new code appears to be doing everything correctly, but, alas, it is failing to authenticate.
Is there a way to configure Fiddler (2.2.9.1) to intercept HTTP calls from a Windows service?
Set Remote Machine Proxy SettingsStart Fiddler Classic on the Fiddler server (the machine that will capture the traffic). Click Tools > Options. Ensure Allow remote clients to connect is checked. On the other machine, set the proxy settings to the machine name of the Fiddler server at port 8888.
Click Tools > Monitor with Fiddler > Use Fiddler automatically to configure with FiddlerHook, or. Click Tools > Options > Advanced > Network > Settings > Use System Proxy Settings.
Fiddler listens on port—Defines the port that Fiddler Everywhere uses to listen for web traffic. The default port is 8866. Act as a system proxy on startup—Controls whether Fiddler Everywhere will be registered as the system proxy during startup.
Codeka provided a clue to get me going in the right direction. The piece that was still missing was how to get the proxy configured. The <appname>.exe.config
needs <defaultProxy>
specified to have a section like the following added:
<configuration> <!-- The `<system.net>` element is an immediate child of `<configuration>` but can appear anywhere in app.config --> <system.net> <defaultProxy enabled="true"> <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/> </defaultProxy> </system.net> </configuration>
Once this was done the Windows service's http traffic started flowing through Fiddler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With