终于有时间做这个事情,弄完后太方便了。
谷歌浏览器上安装步骤:
将postman.crc的.crc后缀改为.rar,解压,后拖入chrome扩展
安装完成
postman interceptor
Postman interceptor,可以拦截chrome发送的所有请求及参数、cookie等信息,便于调试,需要配合postman使用
安装步骤:
- 首先需要安装postman
- 将Postman Interceptor.crc的.crc后缀改为.rar,解压,后拖入chrome扩展
- 复制扩展程序中Postman Interceptor对应的 ID:iegdojcjknifpjcloapbmlblgphehdhk
- 修改postman解压文件目录/js中的requester.js和runner.js
- 将 window.postman_interceptor_id = ('xxxxx'); 引号中的内容替换成Postman Interceptor对应的 ID,总共两处替换
- 在chrome中开启Postman Interceptor,同时postman中打开interceptor开关即可
注:当postman中开启了interceptor时,此时postman发送请求会一直处于Loading状态(会超时),需要关闭interceptor才能正常访问
其他
注:postman和postman interceptor版本关系需要对应,我使用的版本为postman_4.1.2,Postman Interceptor_v0.2.9
安装文件:链接: 百度网盘 请输入提取码 提取码: pi7e
转载:postman和postman interceptor的安装 - oumae - 博客园
我按博主的4.1.2和0.2.9安装后,可以采集request,但是发送请求,一直loading,于是我换成4.1.2和0.2.23,然后就ok了。
打开postman interceptor
访问postman