use HttpFiddler with ASP.NET development Server and IE7

HttpFiddler is a free HTTP debugging proxy and essential for daily asp.net developers work. It works as a proxy and change this settings in IE7 to forward request to fiddler. IE7 does not forward calls made to url contains localhost.

Workaround: make the call to the machine name in IE7. Fix the port in the setting of the Web projekt to a dedicated like 1000. So the call is now http://name:10000/....

The ASP.NET development server does only accept requests to localhost (hardcoded). So add a rule to fiddler which change the name like:

if (oSession.host=="name:10000"){
oSession.host="127.0.0.1:10000";
}
  

this snippet must be placed in function: OnBeforeRequest

Published Thursday, December 28, 2006 12:02 PM by preishuber
Filed under: ,

Comments

# re: use HttpFiddler with ASP.NET development Server and IE7

Thursday, December 28, 2006 7:30 AM by Cyril

Nice tip !

you can also modify the url from

http://localhost:1000/ to http://localhost.:1000/ just adding the . before the : would works :-)

# Have you copied this from the Fiddler Homepage?

Thursday, December 28, 2006 8:34 AM by ttklf4

Cf.: Fiddler HTTP Debugger - Configuring Clients, http://www.fiddlertool.com/Fiddler/help/hookup.asp

# re: use HttpFiddler with ASP.NET development Server and IE7

Monday, April 06, 2009 3:39 PM by Etienne

Cyril's "dot" trick does not work since the developpement server will refuse any connections to anything other than the exact localhost syntax. (ie. localhost:1234)

An easier approch would be to use this rule in "OnBeforeRequest":

oSession.host = oSession.host.replace("everslo","127.0.0.1");

That way, you dont have to hardcode the port or change project settings

Leave a Comment

(required) 
(required) 
(optional)
(required)