
下邊是我在Fiddler Script 編輯器添加的的代碼
static function OnBeforeResponse(oSession: Session) {
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
if (oSession.fullUrl.Contains("auctionRecord/batchCurrentInfo")){
var fso;
var file;
fso = new ActiveXObject("Scripting.FileSystemObject");
//檔案保存路徑,可自定義
file = fso.OpenTextFile("C:\\Users\\Administrator\\Desktop\\test2.txt",8 ,true,true);
file.writeLine(oSession.GetResponseBodyAsString());
file.writeLine("Fiddler");
file.close();
}
}
有大神知道問題是什么原因造成的嗎,前兩天還是好使的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/100945.html
標籤:其他技術專區
