開啟Fiddler抓包工具;點選Rules--Coustomize Rules…;在Fiddler ScriptEditor裡面找到static function Main(),新增如下程式碼即可顯示IP;FiddlerObject.UI.lvSessions.AddBoundColumn("ServerIP", 120, "X-HostIP");;在Class Handlers裡面新增如下程式碼即可顯示響應時間; function BeginRequestTime(oS: Session) { if (oS.Timers != null) { return oS.Timers.ClientBeginRequest.ToString(); } return String.Empty; } 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; }
開啟Fiddler抓包工具;點選Rules--Coustomize Rules…;在Fiddler ScriptEditor裡面找到static function Main(),新增如下程式碼即可顯示IP;FiddlerObject.UI.lvSessions.AddBoundColumn("ServerIP", 120, "X-HostIP");;在Class Handlers裡面新增如下程式碼即可顯示響應時間; function BeginRequestTime(oS: Session) { if (oS.Timers != null) { return oS.Timers.ClientBeginRequest.ToString(); } return String.Empty; } 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; }