抓取http响应的response 内容,并保持至本地;
response auto save
response auto download
http response save
chrome response save
使用工具:Fiddler 4
操作步骤:
1: 找到 CustomRules.js 文件进行编辑
2:确定文件位置:
我的是:C:\Users\admin\Documents\Fiddler2\Scripts
修改如下方法加入解码和保存代码即可;
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
if(oSession.uriContains("wwww.baidu.com")&&(!oSession.uriContains("r.png"))){
//这里进行字符集解码
oSession.utilDecodeResponse();
//这里进行保存
oSession.SaveResponseBody("D:\\Fiddler2\\http\\"+Date.parse(new Date())+"_"+oSession.id+".txt");
}
}