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

Filter packets whith body matching a regex

1 Answer 283 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Bogdan
Top achievements
Rank 1
Bogdan asked on 30 May 2018, 07:52 PM

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.

1 Answer, 1 is accepted

Sort by
0
Simeon
Telerik team
answered on 01 Jun 2018, 03:24 PM
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
Tags
Windows
Asked by
Bogdan
Top achievements
Rank 1
Answers by
Simeon
Telerik team
Share this question
or