Postman App 和 Postman Interceptor 的使用

左手的ㄟ右手 2023-07-21 11:14 45阅读 0赞

文章目录

      • Postman
      • 安装
        • 环境说明
        • Postman App 的下载和安装
        • Postman Interceptor 插件的安装
      • 使用
        • Postman App 使用 浏览器信息
        • Postman App 复杂提交
        • PostMan 手动增加Cookie

Postman

Postman 是一款用于测试各种 http 请求的工具,其原先被用于 浏览器插件,现在提供了App 形式的独立软件,但是在配合 插件 Postman Interceptor 的情况下,Postman App 可以直接借用浏览器中的一些配置数据,比如 Cookies,简直方便的不要不要的。

安装

环境说明

以笔者为例
Postman App 支持 Mac 和 Windows 操作系统。
Postman Interceptor 需要在 Chrome 浏览器使用。

Postman App 的下载和安装

https://www.postman.com/

Postman Interceptor 插件的安装

在 Chrome 浏览器 访问 https://chrome.google.com/webstore/search/postman%20interceptor 然后安装就好了
如果没有办法访问 Chrome webstore 可以访问 chrome://extensions/ ,自己找一下离线插件包,拖进来。

使用

Postman App 使用 浏览器信息

直接在浏览器里访问想要测试的网站
然后大家 Postman App
点击 下面图片中的按钮,开启 Interceptor 就可以使用 浏览器 会话信息了
在这里插入图片描述

Postman App 复杂提交

如下图,可以 Post Json 格式数据
也可以在 Header 中添加关键信息,比如 Cookies 会提示你开启 Interceptor
在这里插入图片描述

在 header 中添加 Cookie ,完整的 Cookie 字符串复制到 value 中
在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,45人围观)

还没有评论,来说两句吧...

相关阅读

    相关 POSTMAN使用

    > 一、下载和安装 官网直接下载(邮箱注册即可) [POSTMAN官网][POSTMAN] > 二、数据同步和创建测试集 1.创建测试集 ![在这里插入图片描述]

    相关 postman基础使用

    写完接口最好的方法就是测试,postman就是这样一款软件,可以模拟各种http请求,post、get、delete、put,请求头也可以手动设置 postman是chrom