fiddler4实用方法
模拟低速网路环境…启用方法如下:
Rules → Performances → Simulate Modem Speeds
Rules → Performances → Simulate Modem Speeds
host修改方法如下:
Tools → HOSTS
Tools → HOSTS
修改请求的发出和接受参数
Rules → Automatic Breakpoint → before after
修改raw的返回结果
fiddler script脚本修改
请求前修改header消息
if (oSession.HostnameIs("bcccb.m.yiguo.com")) {
oSession.oRequest.headers.Add("CCBWebView-User-Agent", "CCBWebView/*/iPhone OS/*/8.3/*/3.52/*/640*1096");
oSession.oRequest["User-Agent"]="Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X)";
}