美文网首页chrome插件推荐程序员
Postman Interceptor学习笔记

Postman Interceptor学习笔记

作者: xiaolanzi007 | 来源:发表于2016-08-16 21:21 被阅读10342次

前几日为了获取某网站数据,在网上找了很多相关资料。最后找到一种请求方式,同事使用postman模拟请求成功,但是我模拟请求就失败,请求为POST请求,我同事是可以的,但我就一直403。

后来经过仔细对比研究发现,postman有一个chrome插件 Postman Interceptor,可以让postman中发送请求的时候使用这个网站的浏览器cookie。我同事用了这个插件,发送请求的时候带上了自己的cookie,所以才能访问。

于是仔细研究了一下这款chrome Postman Intercepto插件。

Postman Interceptor的主要功能

记录浏览器请求并直接导入到Postman

可添加Filter,对浏览器中的请求进行过滤

如何安装Postman Interceptor?

1. 下载Postman Intercepter chrome插件,其格式是一个crx文件。

2. 在谷歌中打开:chrome://extensions/

3. 拖动crx文件到chrome://extensions/页面。

4. 在“要添加‘Postman interceptor’吗”对话框上点击“添加扩展程序”。

5. 然后就可以看到浏览器右上角的postman interceptor 工具图标

Postman Intercepter使用方法

1.在Postman工具中打开postman Intercepter功能

2. 如果只需要测试特定网站,可以在 postman interceptor插件中设置 Filter requests。

Filter requests默认是“.*”,表示捕获所有的网站。如果只想要捕获百度,可以在Filter requests里输入“baidu”。

3. 在chrome中进行操作,比如打开百度,然后搜索关键字“hello”,然后点击“百度一下”。

4. 打开 postman interceptor。可以看到 “last 10 requests“。

5. 打开Postman,可以看到“History”显示chrome中进行的操作。

6. 然后就可以在Postman对 request进行修改,过滤,以及编写测试。

Postman Interceptor,可以让postman中发送请求的时候使用这个网站的浏览器cookie。发送请求的时候带上了自己的cookie,如果在尝试获取数据时不能访问,可以考虑Postman Interceptor。这款插件的下载地址:http://www.cnplugins.com/devtool/postman-interceptor/download.html

也发了一个很好的chrome插件网,chrome插件几乎在这个网站上都能找到。

相关文章

  • Postman Interceptor学习笔记

    前几日为了获取某网站数据,在网上找了很多相关资料。最后找到一种请求方式,同事使用postman模拟请求成功,但是我...

  • API开发神器-Postman

    在线安装Postman Chrome插件版 MAC版本 Postman+Postman Interceptor结合...

  • request工具

    使用教程 点击查看使用教程 安装文件 Postman Postman Interceptor good luck ...

  • Postman中文文档—— Interceptor扩展

    什么是Interceptor Postman Interceptor是可用于Chrome的扩展程序,可以捕获和操纵...

  • Postman和Postman Interceptor整合

    在谷歌浏览器插件中安装Postman Interceptor,配置如图 安装Postman,配置如图 其中,我发现...

  • postman插件使用

    用途:接口调试 前提:谷歌浏览器安装2个插件:Postman、Postman Interceptor 1.打开Po...

  • postman的下载与安装

    今天尝试安装了强大的工具 ,postman以及postman interceptor ,安装过程也遇到了一些坑,随...

  • Postman Interceptor 插件

    引入 编写接口的时候,经常需要用到postman来进行测试。但是,很多接口都是需要进行登录后才能操作的,这就需要在...

  • Postman+Postman interceptor使用

    做后端开发避免不了进行接口调试,但是一般的项目都是前后端分离的,如果把前端代码下到本地,较为费事,这个时候就需要一...

  • 使用postman interceptor 和 postman刷

    文章背景 前几天用简书写了《Jmeter验证码注册接口压力测试实战》一文,今天看了一下,文章访问量还是少的可怜。本...

网友评论

  • ilom:我知道了,我安装的版本不对
  • ilom:作者你好,我的postman里面没有interceptor功能,确定是最新的版本,你是在哪找的的啊?
    ilom:@xiaolanzi007 我找了个老版本安装上了,可是打开interceptor请求发送不了了,一直loading
    xiaolanzi007:@ilom http://www.cnplugins.com/devtool/postman-interceptor/ 也可能需要单独安装,你搞定了吗?
  • 一只小小小小喵:最近正好在使用postman,发现将postman rest 版本更新到4.8.3之后,就无法再history那里看到chrome浏览器发出的请求了!求教:balloon:
    池边树下:新版postman需要右上角 开启插件 是个卫星的图标

本文标题:Postman Interceptor学习笔记

本文链接:https://www.haomeiwen.com/subject/etopsttx.html