1. Capturing HTTP requests
Postman工具设置代理捕获HTTP请求(可以是浏览器,手机app,桌面应用)。
- Note for the Postman native apps, request captures over HTTPS will not work if the website has HSTS enabled. Most websites have this check in place.
- 设置Postman代理: 点击菜单栏卫星拦截图标,Postman默认监听端口 5555,选择Target为History那么监听到的所有HTTP请求都会到History历史中。
输入图片说明
- 设置浏览器代理为: 127.0.0.0.1:5555
- 设置手机代理为:电脑IP:5555(确保手机和电脑处于同一局域网)
2. Postman Interceptor
Postman Interceptor is a Chrome extension that functions as a proxy to capture HTTP or HTTPS requests.
- 把图标设置为‘ON’即可拦截到浏览器请求。