Session Alerts

To create alerts for specific sessions, add rules using FiddlerScript. For example:

Play a sound when a file is missing. (in OnBeforeResponse)

    if (oSession.responseCode == 404){
        FiddlerObject.playSound("C:\windows\media\ding.wav");
        oSession["ui-strikeout"]="true"; 
    }

Show HTTP POST bodies in a messagebox (in OnBeforeRequest)

    var oBodyString = oSession.GetRequestBodyAsString();

    if (oBodyString.Length > 0) FiddlerObject.alert(oBodyString);
原文地址:https://www.cnblogs.com/hushaojun/p/6945762.html