![](https://img-blog.csdnimg.cn/de0c7edeefb74e918d3f6c22ae6a091e.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Postman
文章平均质量分 66
Postman是一款强大网页调试工具的客户端,Postman为用户提供强大的WebAPI,HTTP请求调试功能。
秦时明月之君临天下
道阻且长,行则将至。
展开
-
Postman在pre-request Script中执行登录获取token
把每次请求发送之前先发送登录请求,然后把登录的token设置到环境变量,最后再把取环境变量的值token。执行接口需要每次执行登录,然后带入登录的token,需要复制比较麻烦。好处:不用调用登录请求,一步操作到位。转载 2024-03-26 12:48:45 · 104 阅读 · 0 评论 -
Postman之Pre-request Script 使用详解
Pre-request Script是集合中请求发送之前需要执行的代码片段请求参数中包含一个随机数或者请求header中包括一个时间戳,或者你的请求参数需要加密。转载 2024-03-26 12:47:23 · 900 阅读 · 0 评论 -
Postman使用技巧之Authorization使用
Authorization设置位置:postman里面的介绍:The authorization header will be automatically generated when you send the request. Learn more about authorization授权头将在发送请求时自动生成。了解有关授权的更多信息:https://learning.postman.com/docs/sending-requests/authorization/例如basic-auth原创 2021-10-24 21:11:19 · 23357 阅读 · 0 评论