一、fiddler的快速入门与下载
fiddler官网:http://www.telerik.com/fiddler
fiddler4下载:https://www.telerik.com/download/fiddler/fiddler4

二、基本原理
1.以代理web服务器形式工作
2.能记录所有的http和https请求
3.监视、设置断点、修改数据功能
4.能用.net语言进行扩展
三、界面介绍
整体布局:
1——主菜单+工具栏
2——session列表
3——view选项视图→请求数据
4——view选项视图→返回数据
5——命令框+status bar状态栏

1.主菜单


2.工具栏
工具栏主要是提供了常见的命令和设置的快捷方式。

3.session列表

颜色:

快捷键:
Ctrl+1/2/3/4/5/6,即用粗体的红色/蓝色/金色/绿色/橙色/紫色标记
Ctrl+X,删除所有session
4.view选项视图

【Filters过滤器】
——对网址进行过滤

【Statistics统计】
——能对请求数、请求用时、IP数等进行统计

【Inspectors监视器】
——能查看各种格式的request和response请求

【AutoResponder创建规则】
——允许您返回本地存储的内容而不是转发请求到服务器

【Composer构建选项卡】
——模拟发送http、https、ftp请求
1.选择composer 2.选择并填写请求
3.execute执行 4.可在左边看到模拟的请求


【Log日志选项卡】
——收集字符串


【Timeline时间轴选项卡】
【APITest】
5.命令行
命令行常见操作的快捷方式:包括【选择命令】和【script命令】

【选择命令】

【script命令】

6.status bar状态栏
状态栏由一组面板组成,显示一些fiddler的配置信息


四、应用→拦截并修改数据
方法一:
1.设置断点
Rules→Automatic Breakpoints→选择响应前/后拦截
2.将拦截的数据进行修改,运行后,可得到修改后的响应数据

方法二:
1.命令框输入
bpu str //设置断点
bpu取消断点
例:bpu str //mobile.12306.cn/otsmobile/apps/services/api/MobileTicket/iphone/init

网友评论