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只是把结束时间-开始的函数
![](https://images2015.cnblogs.com/blog/716206/201607/716206-20160714224910076-2051867811.png)
增加监控请求的详情时间
在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");}