使用postman测试接口时需要先登录怎么办

1.在浏览器上先登录,登录成功后获取cookie:

这里写图片描述

2.接着打开postman:
这里写图片描述

3.接下来send即可。

其他参考资料:

接口测试 postman:模拟发送一个需要 cookie 认证的请求

https://testerhome.com/topics/7612

猜你喜欢

转载自blog.csdn.net/weixin_38203902/article/details/81543741