postman基本用法
2019-02-01 本文已影响0人
ardour桃子
一. postman常规使用方法:
1. 下载Postman安装包,加入chrome浏览器的扩展程序中或者直接去chrome商店搜索Postman并添加;
2. 可在Postman中进行常用的GET请求、POST请求,GET请求如图1所示,POST请求如图2所示;此处不再详述
3. 对未加密不需要cookie的请求,通过步骤2即可成功请求,但对公司内部平台接口的请求需要特定的cookie,即需要有权限才可以请求公司内部平台的接口,因此我们需要另一个插件~Postman Interceptor。只要在chrome浏览器打开Postman Interceptor,并访问公司内部平台,Postman Interceptor就会自动记录下对应接口的cookie,这时再使用postman请求公司内部平台的接口,就能成功啦~

