请求前拦截某个请求
static function OnBeforeRequest(oSession: Session) {
if (oSession.url.indexOf("initialCid=") > -1 && oSession.url.indexOf("dm=cd") > -1) {
oSession.oRequest.FailSession(666, "Blocked", "Fiddler blocked ");
}
}
响应的内容替换
static function OnBeforeResponse(oSession: Session) { // 检查响应的 URL 是否包含 'initialCid=' 字符串 if (oSession.url.indexOf("initialCid=") > -1 && oSession.url.indexOf("dm=cd") > -1) { // 获取原始响应内容 oSession.utilReplaceInResponse("var request = new XMLHttpRequest()","debugger;var request = new XMLHttpRequest()"); //if(this[dn(Q(v(19,11),w(761,11)))]) oSession.utilReplaceInResponse("if(this[dn(Q(v(19,11),w(761,11)))])","debugger;if(this[dn(Q(v(19,11),w(761,11)))])"); MessageBox.Show(111111111111111); } }
标签:11,dn,fiddler,自定义,indexOf,761,url,规则,oSession From: https://www.cnblogs.com/angdh/p/18193299