Postman发送带cookie的http请求

Postman发送带cookie的http请求

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

这个Interceptor还需要到chrome应用商店下载 Postman Interceptor 扩展程序。现在能发送带cookie的http请求。发送cookie时,在header中添加key-value,key固定为Cookie,value是cookie具体的k=v,例如:
Postman发送带cookie的http请求

需要注意的是,发送带cookie的时候必须得开着chrome浏览器。