fidder監控請求響應時間和請求IP(摘抄至網絡)


增加監控請求的詳情時間

CustomRules.js的 class Handlers中增加
  //添加請求的響應時間
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;
           }
說明,任意點擊fidder監控的請求,即可發現fidder是有監控請求的發起時間和請求的結束時間的,上面的js只是把結束時間-開始的函數
 

 
 

增加監控請求的詳情時間

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM