How to filter out POST requests in fiddler by Body?

You can do that using Fiddler.Script, that reads the body, checks if it contains the string and if it finds the string hides the complete request/response:

static function OnBeforeRequest(oSession: Session) {
    if (oSession.HostnameIs("")) {
        var body = oSession.GetRequestBodyAsString();
        if (!body.Contains("\"param 2\" : \"3\"")) {
            oSession["ui-hide"] = "does not have search string";

For an more advanced version you could check the path and/or content-type of the request before and then parse it to JSON so that formatting changes do not affect the recognition of the value you are searching.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top