Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate timeouts with Fiddler

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?

like image 291
Jeff Avatar asked Jul 20 '12 15:07

Jeff


2 Answers

Can be achieved on specific responses where you want to intercept the response as well as simulating latency by using "AutoResponder". "Enable Latency" checkbox and right-clicking any rule to pick "Set Latency" you can then adjust latency in millisecond values.

like image 81
stepfitz Avatar answered Oct 13 '22 17:10

stepfitz


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.

like image 44
k0stya Avatar answered Oct 13 '22 15:10

k0stya