巴黎的灯光下 发表于 2019-6-11 12:26:46

使用 Postman 录制手机请求

本帖最后由 巴黎的灯光下 于 2019-6-11 14:23 编辑


[*]工具安装

[*]Postman mac app
[*]PostmanProxy(官方有bug,这个是bug fixed版本,通过pip安装)
pip install -e git+https://github.com/kayvannj/PostmanProxy#egg=PostmanProxy
[*]使用

[*]启动 Postman mac app
2.点击代理设置

https://testerhome.com/photo/2016/b621b5e500f309566eeb3b31c38eb863.png
[*]filter中可以通过正则表达式来匹配自己关心的url
https://testerhome.com/photo/2016/cd001fe90808820d937a8f9aa2110a4a.png
[*]设置代理端口号,点击Connect,启动代理
[*]手机设置代理为电脑ip(通过ifconfig查看),端口号第4步设置的端口号
ps: github上有个自动设置代理app,配合adb+shell使用效果奇佳
[*]在手机上正常使用App,就可以在Postman中看到请求的信息了
[*]postman的详细使用请自行查看官方文档

页: [1]
查看完整版本: 使用 Postman 录制手机请求