fiddler script
保存请求
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
if(oSession.host == 'ons.console.aliyun.com')
{
var filename = '';
if (oSession.url == 'ons.console.aliyun.com/data/api.json?action=ConsoleMessageGetByPagedTopic') {
filename = "C:/Users/Administrator/Desktop/response/message/response"+message_index+".txt";
oSession.utilDecodeResponse();
oSession.SaveResponseBody(filename);
message_index++;
}
if (oSession.url == 'ons.console.aliyun.com/data/api.json?action=ConsoleTraceGetTraceMapByQueryId') {
filename = "C:/Users/Administrator/Desktop/response/trace/response"+trace_index+".txt";
oSession.utilDecodeResponse();
oSession.SaveResponseBody(filename);
trace_index++;
}
}
}
过滤请求
配置https
配置代理
本文来自博客园,作者:糖烤栗子&,转载请注明原文链接:https://www.cnblogs.com/grocerystore/p/15721175.html