This is a migrated thread and some comments may be shown as answers.

How can I repeat a POST Request using Fiddler

1 Answer 84 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Peter84
Top achievements
Rank 1
Peter84 asked on 17 Nov 2019, 06:27 PM
I apologize for possible errors, I use a translator. The phone sends information to the server via post request. The information sent is valid only for 5 seconds and if the request is sent in this interval, the server reports - 301 Moved Permanently . If more than 5 seconds have passed - 401 Unauthorized. I try to repeat the request through the "Composer" function, but the server constantly writes 401. The server sees that the sent request is old, not new. Is it possible to make a request be sent via Composer and accepted by the server?

1 Answer, 1 is accepted

Sort by
0
Accepted
Boby
Telerik team
answered on 20 Nov 2019, 11:13 AM

Hi Peter,

You can try to use FiddlerScript to repeat the request very fast, based on some filters:

    static function AfterSessionComplete(oSession) : Session {
        if (oSession.RequestMethod == "POST") // add more filters here if needed
        {
            // repeat the request after the session is finished:
            FiddlerApplication.oProxy.SendRequest(oSession.RequestHeaders, oSession.requestBodyBytes, null);
        }
    }
Request headers and body can be changed, if needed.

Regards,
Boby
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Fiddler Classic
Asked by
Peter84
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or