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);

posted on 2017-06-05 16:48  帅胡  阅读(162)  评论(0编辑  收藏  举报

导航