请求抓取工具
请求抓取工具
## Chales
1. 开启HTTP代理,供手机连接
Proxy => Proxy Settings => HTTP Proxy => 指定端口,并勾选【Enable transparent HTTP Proxying】
2. 开启抓取https请求
(1) 安装Charles证书
Help => SSL Proxying => Install Charles Root Certificate
(2) 配置待抓取的域名
Proxy => SSL Proxying Settings => SSL Proxying => 勾选【Enable SSL Proxying】 ,添加待抓取的域名(支持*号通配符)
3. 开启请求映射功能:
(1) Tools => Map Local : 映射本地目录或文件
(2) Tools => Map Romote : 映射服务器
4. 模拟发请求
Tools => Compose
## Fiddler
1. 开启HTTP代理,供手机连接
Tools => Telerik Fiddler Options => Connections => 设置端口,勾选【Allow remote computers to connect】……
2.开启抓取https请求
Tools => Telerik Fiddler Options => HTTS =>
(1) 勾选【Capture HTTPS connects】、【Decrypt HTTPS connects】
(2) 点击【Actions】:
点击【Trust Root Certificate】,将Fiddler证书加入可信任列表中
点击【Export Root Certificate to Desktop】,将Fiddler证书导出至桌面
(3) 打开浏览器(Firefox/Chorme),进入高级设置里,将桌面中的Fillder证书导入进来
3. 主要功能TAB项说明:
(1) Inspectors : 查看抓取的请求的Header(参数、cookie、referer……)和Response(返回结果、https状态……)
(2) Auto Responder : 拦截替换返回值……
(3) Composer : 模拟发送请求
(4) Api Test : 测试API请求
(5) Filters : 过滤抓取请求
## 参考网址
Mac上使用Charles对https请求抓包--安装Root Certificate
http://blog.csdn.net/swj6125/article/details/53321574
## Chales
1. 开启HTTP代理,供手机连接
Proxy => Proxy Settings => HTTP Proxy => 指定端口,并勾选【Enable transparent HTTP Proxying】
2. 开启抓取https请求
(1) 安装Charles证书
Help => SSL Proxying => Install Charles Root Certificate
(2) 配置待抓取的域名
Proxy => SSL Proxying Settings => SSL Proxying => 勾选【Enable SSL Proxying】 ,添加待抓取的域名(支持*号通配符)
3. 开启请求映射功能:
(1) Tools => Map Local : 映射本地目录或文件
(2) Tools => Map Romote : 映射服务器
4. 模拟发请求
Tools => Compose
## Fiddler
1. 开启HTTP代理,供手机连接
Tools => Telerik Fiddler Options => Connections => 设置端口,勾选【Allow remote computers to connect】……
2.开启抓取https请求
Tools => Telerik Fiddler Options => HTTS =>
(1) 勾选【Capture HTTPS connects】、【Decrypt HTTPS connects】
(2) 点击【Actions】:
点击【Trust Root Certificate】,将Fiddler证书加入可信任列表中
点击【Export Root Certificate to Desktop】,将Fiddler证书导出至桌面
(3) 打开浏览器(Firefox/Chorme),进入高级设置里,将桌面中的Fillder证书导入进来
3. 主要功能TAB项说明:
(1) Inspectors : 查看抓取的请求的Header(参数、cookie、referer……)和Response(返回结果、https状态……)
(2) Auto Responder : 拦截替换返回值……
(3) Composer : 模拟发送请求
(4) Api Test : 测试API请求
(5) Filters : 过滤抓取请求
## 参考网址
Mac上使用Charles对https请求抓包--安装Root Certificate