How to filter Fiddler traffic by request method?

Fiddler captures many HTTP OPTIONS calls that I am not interested in.

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

+7
fiddler
source share
1 answer

In Fiddler, click Rules → Configure 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 to this code:

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

Or, conversely, if you want to hide them only after they returned 200

find OnBeforeResponse and add to this code:

 static function OnBeforeResponse(oSession: Session) { if (oSession.HTTPMethodIs("OPTIONS") && oSession.responseCode == 200) { oSession["ui-hide"] = "true"; } 
+13
source share

All Articles