返回列表

Fiddler添加查看请求类型列

默认分类 2017/07/31 20:04

原文地址:http://blog.csdn.net/z_q_m/article/details/53946205

最终效果如图:

打开Rules中的Customize Rules如图:

在CustomRules.js里找到.static function Main() 添加如下一段脚本

static function Main() {  
    var today: Date = new Date();  
    FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today;  
    //请求类型  
    FiddlerObject.UI.lvSessions.AddBoundColumn("Method",60,getHTTPMethod );  
}  
static function getHTTPMethod(oS: Session){  
    if (null != oS.oRequest) return oS.oRequest.headers.HTTPMethod; else return String.Empty;  
}

参考网站:http://docs.telerik.com/fiddler/knowledgebase/fiddlerscript/addcolumns