Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to filter Fiddler traffic by request method?

Fiddler is capturing a lot of HTTP OPTIONS calls, which I have no interest in.

Is it possible to ignore these and only see GET and POST?

like image 850
Buh Buh Avatar asked Jan 19 '15 11:01

Buh Buh


People also ask

How do I filter a process in Fiddler?

Just go to the Filters tab in Fiddler and then the "Client Process" fieldset and then choose "Show only traffic from " and choose the appropriate process.

How do you replay a request on Fiddler?

Select one or more sessions in the Sessions List. Press R or right-click the session(s) and click Replay > Reissue Requests.

How do you see responses in Fiddler?

In Fiddler, select the Inspectors tab to see the Request and Response. Now, this tab is split horizontally; the Request Inspectors are across the top, and the Response Inspectors are across the bottom. If you don't see the tabs along the bottom, grab the blue splitter line near the bottom and drag it upward.


1 Answers

In Fiddler, click "Rules" --> "Customize Rules". This will open a script file allowing you to create custom rules.

 

If you want to hide all OPTIONS requests

find OnBeforeRequest and add in this code:

static function OnBeforeRequest(oSession: Session) {
    if (oSession.HTTPMethodIs("OPTIONS")) {
       oSession["ui-hide"] = "true";
    }

 

Or alternatively, if you want to hide them only once they have returned 200

find OnBeforeResponse and add in this code:

static function OnBeforeResponse(oSession: Session) {
    if (oSession.HTTPMethodIs("OPTIONS") && oSession.responseCode == 200) {
       oSession["ui-hide"] = "true";
    }
like image 166
Buh Buh Avatar answered Sep 20 '22 15:09

Buh Buh