Skip to content

*.dannyg

an extension of dannyg

Menu
  • Home
  • art
  • inspiration
  • music
  • poetry
  • Recipes
  • writings
Menu

Fiddler debugging a non-browser XMLHTTP application

Posted on August 1, 2010

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.

Technorati Tags: debugging,fiddler,visual-basic,vb,xmlhttp

Leave a Reply

You must be logged in to post a comment.

Recent Posts

  • Reading Room
  • Inspirational Movies / TV shows
  • Remove passphrase from PEM file
  • Parallels Multihoming a CentOS Server
  • Forced Failures

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2026 *.dannyg | Design: Newspaperly WordPress Theme