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++;
		}
	}

}

过滤请求

image

配置https

image

配置代理

image

posted @ 2021-12-22 21:27  糖烤栗子&  阅读(35)  评论(0编辑  收藏  举报