From time to time I install Fiddler [1] on new PCs and everytime I have the same problem: which rules do I need to get most from Fiddler. Here are my top 5 rules [2] I use:
<li>In OnBoot() I use following two lines to display the raw request and response inspectors:<br><em>FiddlerObject.UI.ActivateRequestInspector("Raw");<br>FiddlerObject.UI.ActivateResponseInspector("Raw");<br></em></li><li>To disable RSS traffic I search for the user agent and hide the sessions (for Office 2007 and Internet Explorer 7), put following lines in OnBeforeRequest:<br><em>if (<br> oSession.oRequest["User-Agent"].indexOf("Windows-RSS-Platform") >= 0 || <br> oSession.oRequest["User-Agent"].indexOf("MSOffice 12") >= 0<br> )<br> oSession["ui-hide"] = "true";<br></em></li><li>To simulate a slow modem connection I use following lin in OnBeforeRequest and OnBeforeResponse:<br><em>oSession["request-trickle-delay"] = "300";<br>oSession["response-trickle-delay"] = "150";<br></em></li><li>When I'd like to test my web site without cookies enabled I add following line in the OnBeforeRequest method:<br><em>oSession.oRequest["Cookie"]="";<br></em></li><li>To allow hand-editing an ASP.NET AJAX request I add a break in the OnBeforeRequest (the same I do for the response):<br><em>if(oSession.oRequest.headers.ExistsAndContaines("Content-Type", "application/json") {<br> oSession["x-breakrequest"] = "Break for JSON request";<br>}</em></li> If you are using IIS on Windows XP/2000 you should check if the Reuse connections to servers (improved performance) is disabled because Windows XP/2000 does not allow more then 10 concurrent requests.