fiddler 保存请求数据并发送到自己的服务器接口
搜索 OnBeforeResponse 方法,再方法后面添加如下代码:
if (oSession.fullUrl.Contains("https://mp.weixin.qq.com/mp/")){ //通过ajax发送到服务端 var xhr = new ActiveXObject(‘Microsoft.XMLHTTP‘); var url = ‘http://domain.com/notify_url‘; //发送的数据 var data = ‘{"response":"‘+ oSession.GetResponseBodyAsString() +‘","url":"‘+ oSession.url +‘","headers":"‘+ oSession.oRequest.headers +‘","raw":"‘+ oSession.GetRequestBodyAsString() +‘"}‘; //不需要返回值所以写啦个空回调 xhr.onreadystatechange = function() {} xhr.open(‘POST‘, url, true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhr.send(data); }
相关推荐
灵均兰草 2020-08-20
老高 2020-08-17
yfightfors 2020-08-16
jianghero 2020-07-28
83520298 2020-07-06
starzhangkiss 2020-06-22
TimeSky 2020-05-26
TimeSky 2020-05-11
jianghero 2020-05-05
yuleng测试赛 2020-05-03
jianghero 2020-05-03
jianghero 2020-05-01
OyangYujun 2020-04-25
yuleng测试赛 2020-04-22
MichelinMessi 2020-04-20
jianghero 2020-04-18
yuleng测试赛 2020-04-11
OyangYujun 2020-04-10