4

chrome | Postman Interceptor

 2 years ago
source link: https://benpaodewoniu.github.io/2022/04/23/chrome3/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

chrome | Postman Interceptor

发表于

2022-04-23 分类于 应用chrome扩展开发

Valine: 0

这个是 Postman 官方出的插件。

想象一下这种场景,我们想要模拟 chrome 发送请求,所以要构造数据。

比如,headerspost dataparams 等。

但是,如果自己动手敲的话,总会出错,而且效率还很低下。

但是,这款插件,可以将相关的请求截取到,然后发送到 postman 的客户端。

首先,我们要安装 postman,然后安装插件 Postman Interceptor

postman

我们要安装中间件,bridge,在下面图中。

3_0.png

上图是已经和插件连接好的状态,如果是第一次,那么蓝框中会有 install bridge 相关的字样。

Postman Interceptor

这里假设已经安装好插件了。

3_1.png

如果点击开关后,插件的图标会变成蓝色。

点击「show filters」可以设置过滤规则,建议使用,不然,会给 postman 传递太多的无用 request

这里假设 postmanPostman Interceptor 已经连接好,只需要正常的使用 chrome 就好了。

我们会在 postman 左侧的 History 看到,我们用 chrome 发送的请求。

点击要使用的请求就好了。

请我喝杯咖啡吧~

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK