Tip on using Fiddler with cassini and localhost
A lot of us use Fiddler to debug traffic from our applications. Fiddler doesn't work with requests to localhost. When debugging an ASP.NET website, we can always use the machine name instead of localhost. However, when using the ASP.NET development server (aka Cassini), we cannot use the machine name (since Cassini blocks requests other than localhost). We can hence do either of the following:
1. Append a "." to localhost.
So, if your url looks like: http://localhost:12825/, try using http://localhost.:12825/ instead. Or, if your url looks like "http://localhost/TestApp/Test/Default.aspx", try using
http://localhost./TestApp/Test/Default.aspx" instead. It works with fiddler
2. Within Fiddler, on the menu, click Rules->Customize Rules. Within the function OnBeforeRequest(oSession:Fiddler.Session), add the following:
if(oSession.host == "<machinename>:<port>")
If this doesn't work, just change the line to be oSession.host="127.0.0.1:<port>";.
and now make a request to http://machinename:<port>. This way fiddler gets the request and cassini gets it too.
Have fun using fiddler. Here it is (http://www.fiddlertool.com/fiddler/).