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

Reissue the session

1 Answer 146 Views
FiddlerCore
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 17 Jan 2018, 12:50 AM

HI

In the fiddler there is a feature "Reissue from composer", which I try to do from FIddlerCore .net standard.

But I don't know how to do it..

In "FiddlerApplication.BeforeRequest += (Session oS) => {" I'm trying to :

if (oS.url.IndexOf("original_url") >=0) {
                            oS.url = "new_url";
                            oS.utilSetRequestBody(File.ReadAllText("xml-body-request"));
                           }
but it doesn't work, like I miss something. ResponseBody has 0 bytes in such approach..

Any idea what is missing here ?

 

Best regards 

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 22 Jan 2018, 02:37 PM
Hello,

"Reissue from composer" is a feature that takes the request from given session and let you create new request from the composer mimicking the original session. What you are trying to do by adding your code to "BeforeRequest" is to change all requests, whose URL is matching "original_url", which is totally different scenario.

If you are trying to change the outgoing sessions, then you are on the right track. If the server does not return any bytes, then maybe your request has something wrong. If you want to replicate the "Reissue from composer" you can use "Proxy.SendRequest" method to send request. Use already captured session to fill the arguments (if you want to fully replicate the "Reissue .." feature, if not you can create them yourself). Proxy instance can be accessed though FiddlerApplication.oProxy.

Regards,
Alexander
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
FiddlerCore
Asked by
Piotr
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or