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

How does Replay/Reissue Responses actually affect the client?

5 Answers 488 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Lior
Top achievements
Rank 1
Lior asked on 29 Dec 2019, 06:41 AM

If a site uses, for example, a <script src=... then I want to catch that script and modify it.

I choose Unlock for editing and modify it, but I've noticed when I click Replay/Reissue the browser's console still shows only the original Response.

Meanwhile, Fiddler does show the new modified request being sent.

So what does it mean?

5 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 03 Jan 2020, 07:44 AM

Hi Lior,

"Reissue" functionalities will replay the modified request. In case you modify the response for an already captured session, this shouldn't affect the request, and when the same request is replayed, you server will probably return the same response.

If you want to automatically trick the client to use another script and not the one returned by the server, you can use an AutoResponder rules configured to match the request and return the needed script without reaching to the server. 

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
0
Lior
Top achievements
Rank 1
answered on 03 Jan 2020, 11:15 AM

>"Reissue" functionalities will replay the modified request. In case you
modify the response for an already captured session, this shouldn't
affect the request, and when the same request is replayed, you server
will probably return the same response.

In that case, what is it supposed to affect?

0
Boby
Telerik team
answered on 08 Jan 2020, 07:25 AM

Hello Lior,

Reissue will reply the request, with option to edit it before sending to the server (if you choose Reissue and Edit for example). Then the server will respond, and if you want to modify the response, you can set breakpoint after the response is received by Fiddler, but before it's send to the client, and manually edit it, for example by Tools -> Automatic breakpoints -> After Responses. In this case, you'll have to manually edit the response before releasing it to the client. 

Another approach would be to use AutoResponder, which could return pre-defined responses for requests that matches specific conditions (e.g. the URL is exactly www.example.com/something). In this case, the original server is not reached at all. You can drag and drop sessions to the AutoResponder to create rules based on an original request/response pair, and then modify it to return the modified script.

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
0
Lior
Top achievements
Rank 1
answered on 11 Jan 2020, 08:50 PM

>Then the server will respond, and if you want to modify the response, you can set breakpoint after the response is received by Fiddler, but before it's send to the client, and manually edit it, for example by
Tools -> Automatic breakpoints -> After Responses.

Is there an immediate way to click reissue, and have Automatic breakpoints automatically catch it?
Usually it has to be defined inside filters.

0
Boby
Telerik team
answered on 20 Jan 2020, 07:15 AM

Hi Lior,

If you are looking for a way to automate the task, you can use FiddlerScript, e.g.:

static function OnDone(oSession: Session)
    {
        if(oSession.url.StartsWith("www.google.com")){
             // This code is to show how to reissue the request, you can modify the original headers/body as needed before sending it.
             FiddlerApplication.oProxy.SendRequest(oSession.oRequest.headers, oSession.requestBodyBytes, sdSessionFlags);
        }
    }

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
Lior
Top achievements
Rank 1
Answers by
Boby
Telerik team
Lior
Top achievements
Rank 1
Lior
Top achievements
Rank 1
Share this question
or