How to simulate timeouts with Fiddler

fiddlerhttphttpwebrequestposttimeout

I have a C# script that HTTP POSTs to another server with WebRequest. I'd like to test how my web application would respond if the other server became unresponsive. What is the best way to do this without having to change any of my application code or configuration? Will Fiddler be able to cause timeouts for requests coming from my local IIS?

Best Answer

You can achieve it using the "Simulate Modem Speeds" rule.

  1. Rules -> Customize Rules
  2. Find the line that says "oSession["response-trickle-delay"]" and change it. Set it to 10000. It should be enough to cause time out. Save the file.
  3. Rules -> Performance -> Simulate Modem Speeds (should be checked).

Note: Use ipv4.fiddler instead of localhost.