Fiddler小技巧之新增請求耗時/IP/Method列
阿新 • • 發佈:2019-01-07
新增列的方法,網上可以查到,這裡整理下。
請求耗時:
直接加在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; }
請求IP:
加在main函式後面
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"); }
請求方法:
可以看到列了:)