Filter packets whith body matching a regex

2 posts, 0 answers
  1. Bogdan
    Bogdan avatar
    1 posts
    Member since:
    May 2018

    Posted 30 May Link to this post

    Hi there,

    I know we don't have a GUI option to filter bodies.

    I was thinking about using OnDone for hiding/filtering them.

    I just need a way to get the body and a way to block this.

     

     

    I'm getting too many packets. I would like Fiddler to exclude packets that have no information valuable for my analysis.

  2. Simeon
    Admin
    Simeon avatar
    116 posts

    Posted 01 Jun Link to this post

    Hello Bogdan,

    I was thinking about using OnDone
    You could use the OnBeforeRequest to hide/filter sessions based on the request body and the OnBeforeResponse to hide/filter based on the response body.

    I just need a way to get the body
    In order to get the body you could use the GetRequestBodyAsString and GetResponseBodyAsString methods of the Session object.

    and a way to block this
    You could hide the sessions by calling the oSession.Ignore method if the session is not of interest at all or by setting the oSession["ui-hide"] flag to any string. (Best practice is the string to mention the rule which sets the flag) The second method is more suitable if you just want to hide the session from the session list.

    Regards,
    Simeon
    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