Reissue the session

2 posts, 0 answers
  1. Piotr
    Piotr avatar
    3 posts
    Member since:
    Jan 2018

    Posted 16 Jan 2018 Link to this post

    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 

  2. Alexander
    Admin
    Alexander avatar
    383 posts

    Posted 22 Jan 2018 Link to this post

    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
Back to Top