I am using FiddlerCore to test out my applications behavior when waiting a long time for server response. I am using c++ winhttp.h library in my app. I am trying to introduce delay before triggering each async callback. So far I have tried two solutions:
- Adding
oSession["response-trickle-delay"] = receiveDelayinMillisecPerKb;as explained in this blog post, and this simulates slow streaming from storage detectable whenWinHttpReadDatais called. - Adding
Thread.Sleep(delayMs)in different fiddler session state handlers (BeforeRequest, RequestHeadersAvailable, BeforeResponse, ResponseHeadersAvailable) but from my app it seems that all of them prolong the time betweenWinHttpSendRequestmethod andWINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETEstatus callback.
Is there any other way to introduce delay in request in different request states using Fiddlercore?