Fiddler is an excellent application for observing and debugging internet traffic. However I wanted to be able to monitor some non-browser traffic. In this particular case a piece of VB code. Here’s how I did it. I have my simple XMLHTTP request here.
Set x = New ServerXMLHTTP60
Call x.Open("GET", "http://www.bing.com/", True)
x.Send()
So essentially I need some way to pass this request to a proxy server. Fiddler “listens” on localhost port 8888. Here is the final code with the modification to pass the request through Fiddler.
Set x = New ServerXMLHTTP60
Call x.Open("GET", "http://www.bing.com/", True)
Call x.setProxy(2, "127.0.0.1:8888")
x.Send()
You can also redirect all traffic from WinINET to Fiddler to, I thought this was a more granular way to control this.