Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cookie vs Set-Cookie Header in Postman

Why doesn't Postman (chrome extension) support more traditional "Set-Cookie" header. I have tried sending cookies using "Set-Cookie" as key and "cookie_name=cookie_value" as value, but server did not get the cookie information.

I retried with "Cookie" as the key and it worked.

It looks like it supports "Cookie" header instead. Why "Cookie" and "Cookie 2" instead of more traditional "Set-Cookie"?

like image 754
user462455 Avatar asked Nov 13 '15 03:11

user462455


1 Answers

Usually a consumer (be it a browser or Postman) sends cookies to the server via the Cookie header.

A server that wants to inform a consumer to set a cookie, will send it via the Set-Cookie header.

Source: Cisco mentions this in one of their Q&A articles

like image 151
gciochina Avatar answered Sep 23 '22 12:09

gciochina