A Useful Fiddler Bookmarklet

IE 7 and up are hard-coded to bypass the proxy when the host is “localhost”. When Fiddler is running, you can change localhost to “ipv4.fiddler” to trick your browser into talking to the Fiddler proxy as documented here.

Since manually changing the host every time I want to test an ASP.NET or Silverlight application is so tedious, I wrote this little bookmarklet to do that work for me:

javascript:(function(){window.location=window.location.toString().replace('localhost', 'ipv4.fiddler');})()

Paste that (as a single line) into the URL box of a favorite in IE and you’re one click away from tracing the requests between your browser and your local development web server.

I’ve been doing a lot of Silverlight work recently so have found this especially useful to debug the interactions between the client and the server.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>