Fiddler的配置

增加监控请求的详情时间

 //添加请求的响应时间

public static BindUIColumn("Time Taken")
           function CalcTimingCol(oS: Session){
             var sResult = String.Empty;
             if ((oS.Timers.ServerDoneResponse > oS.Timers.ClientDoneRequest))
             {
               sResult = (oS.Timers.ServerDoneResponse - oS.Timers.ClientDoneRequest).ToString();
             }
             return sResult;

           }
 
 //添加请求的服务器IP地址
 
在CustomRules.js的static function Main() 中增加一行:FiddlerObject.UI.lvSessions.AddBoundColumn("Server IP", 120, "X-HostIP");
static function Main() {
    var today: Date = new Date();
    FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today;
    // Uncomment to add a "Server" column containing the response "Server" header, if present
    //增加请求IP监控
FiddlerObject.UI.lvSessions.AddBoundColumn("Server IP", 120, "X-HostIP");
}
上一篇:【传智播客】Libevent学习笔记(一):简介和安装


下一篇:不可变字符串String与可变字符串StringBuilder、StringBuffer使用详解