Fiddler-03总结

文章目录

  • Fiddler总结
  • 一、Fiddler的作用
  • 二、Fiddler抓取https请求
  • 三、Fiddler过滤请求
  • 四、看请求和响应
  • 五、定位前后端问题
  • 六、弱网测试
  • 七、mock模拟接口
  • 八、篡改数据

Fiddler总结

一、Fiddler的作用

观察请求与返回的信息,定位前后端bug
进行弱网测试
mock模拟接口
绕过前端界面限制,篡改数据

二、Fiddler抓取https请求

Tools->Options-HTTPS

三、Fiddler过滤请求

抓指定的一个接口
抓指定的多个接口:多个域名用;隔开,*代表通配符
过滤图片、js、css 使用正则表达式

四、看请求和响应

请求关注: 请求方式 接口地址 接口参数

五、定位前后端问题

通过看接口响应回来的内容,接口有返回就是后端没问题

六、弱网测试

固定设置:Rules → Performances → Simulate Modem Speeds
手动设置:模拟1G、2G、3G等

七、mock模拟接口

操作步骤:
选择AutoResponder 勾选enable rules
1.创建一个txt写入你需要的数据数据。
2.然后在选择一个接口,添加你的数据
3.save保存

八、篡改数据

操作步骤:
1、添加断点:在fiddler下方的命令窗口,bpu URL,回车。
2、点击工具栏中Replay,点击下方出现的请求(还未返回),对请求中的值进行修改
3、点击Run to Comple后,出现返回JSON。
4、去除断点:命令窗口:bpu 空格,回车

工具常用:
Filters 过滤
inspectors看请求和响应
Raw
JSON
Headers
AutoResponder mock

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
参考网址:( https://www.telerik.com/blogs/details/introducing-fiddler-for-os-x-beta-1 )Getting Started 1. If you don’t have the Mono framework installed on your MAC, please, download it from http://www.mono-project.com/download/#download-mac and install it. If you already have it installed, please, update it to latest. 2. If you just installed Mono, please open Terminal and type in /Library/Frameworks/Mono.framework/Versions/<Mono Version>/bin/mozroots --import -sync (The Mono framework has its own trusted root certificates store. Currently (at mono version 4.2.4) this store remains empty after installing Mono on Mac OS X. Fiddler uses the certificates in this store to validate the certificates of the websites visited. So you need to populate this store with a set of commonly trusted root authorities to avoid getting constant certificate warnings by Fiddler. The mozroots tool imports trusted authorities from the Mozilla LXR. ) 3. Extract fiddler-mac.zip to a folder you have write access to. It is recommended that the full path to Fiddler install folder does not contain any Windows path illegal characters. (At present it is possible that some Fiddler functionality, e.g. various file exports or Fiddler Script won’t handle such paths.) 4. Open Terminal and navigate to the folder from 3. 5. Type mono Fiddler.exe in Terminal. To further understand the benefits and limitations of Fiddler for MAC please visit - http://www.telerik.com/blogs/Latest-Fiddler-Available-for-Mac-OS-X

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值