static function OnBeforeResponse(oSession: Session) {
if (oSession.url.Contains('/xxxxxxxx')) {
FiddlerApplication.Log.LogString("Request start");
var _xhr = new ActiveXObject('Microsoft.XMLHTTP');
var url = 'http://localhost:8666/list';
_xhr.onreadystatechange = function() {}
_xhr.open('POST', url, true);
_xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8");
//_xhr.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
_xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
_xhr.send( oSession.GetResponseBodyAsString());
}
if (m_Hide304s && oSession.responseCode == 304) {
oSession["ui-hide"] = "true";
}
}
居然来了,就说几句吧