fiddler 获取response中json内容,在fiddler scrpit中 OnBeforeResponse函数内加以下代码
//过滤无关请求,只关注特定请求 if (oSession.fullUrl.Contains("所需网站")|| ) { oSession.utilDecodeResponse(); //消除保存的请求可能存在乱码的情况 var fso; var file; fso = new ActiveXObject("Scripting.FileSystemObject"); //文件保存路径,可自定义 file = fso.OpenTextFile("文本路径",8 ,true); //file.writeLine("Request-url:" + oSession.url); file.writeLine("http://"+oSession.url) file.writeLine("Request-body:" + oSession.GetResponseBodyAsstring()); //file.writeLine("\n"); file.close(); }