Postman发送带cookie的http请求

1.Postman是chrome上一个非常好用的http客户端插件,可惜由于chrome安全的限制,发不出带cookie的请求。如果想要发送带cookie的请求,需要开启Interceptor:

在这里插入图片描述

2.点击这里可以直接在postman中下载 Postman Interceptor 扩展程序。开启Capture Cookies就可以发送带cookie的http请求了。

在这里插入图片描述

3.发送cookie时,在header中添加key-value,key固定为Cookie,value是cookie具体的k=v,例如:
(需要注意的是,发送带cookie的时候必须得开着chrome浏览器。)

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/WziH_CSDN/article/details/112873432