Great Fiddler Tip For Localhost Testing

Tuesday, August 26 2008 - , , ,

I was talking to Shawn Wildermuth tonight and he gave me a great tip about using Fiddler to sniff our calls to my services running on my Cassini web server. I am testing some REST styled WCF services using GET and POST from Silverlight 2 applications so Fiddler has been invaluable. When I put my services on Cassini it gives it the http://localhost:<port> look, tagging on a port number. When typing in the url to my service into the Fiddler Request Builder Fiddler was not picking up the action.

http://127.0.0.1:1306/TestRESTService.svc/Product/7

Long story short … Shawn told me that if I stick a period in front of the semicolon (using the Request Builder) then Fiddler would sniff it. So I tried this:

http://127.0.0.1.:1306/TestRESTService.svc/Product/7

image

And it works!  Now I can get back to testing my examples for my book. Here is Fiddler sniffing the calls:

image

And here are is the respone:

image

Thanks Shawn!

DotNetKicks Image

2 comment(s)

What also works it replacing 127.0.0.1 or localhost with ipv4.fiddler thus resulting in:

http://ipv4.fiddler:1306

By the way.. these are documented features that can be found on the fiddler website.

I MUCH prefer creating a HOSTS entry for localdev.com (with an address of 127.0.0.1) so that you can actually set cookies correctly.