Search code examples
fiddlersession-replay

Fiddler to request HTTP requests with timing respected


Can HTTP request be replayed using Fiddler with caputered session timing respected?

I tried to replay a session with fiddler but the replay sends requests to the maximum speed ignoring the time of capture.

I tried to add this to onBeforeRequest() function:

if (oSession.HostnameIs("example.com") && oSession.uriContains("page.html")) {
    // I tried this
    System.Threading.Thread.Sleep(1000);
    // and this
    // oSession["response-trickle-delay"] = "30"; 
}

but doesn't work very well and I must to repeat this for every captured URI.

I need to replay a captured session but the requests must be sent with the same delay as recorded. Is it possible?


Solution

  • Fiddler does not itself attempt to respect relative timings when replaying requests.

    You could write script or an extension that would do so, based on each Session object's oTimers data.