postmanlabs / httpbin

HTTP Request & Response Service, written in Python + Flask.
https://httpbin.org
ISC License
12.83k stars 1.82k forks source link

Can't get a response using Set-Cookie header ? #699

Open wise-dachshund opened 1 year ago

wise-dachshund commented 1 year ago

Hi guys,

I need a response using the Set-Cookie header but so far I've only been able to get responses where the cookie is set in the response body. Any tips ?

milahu commented 11 months ago

so far I've only been able to get responses where the cookie is set in the response body

what?

$ curl -v "http://httpbin.org/cookies/set?a=1&b=2" --cookie a=1 2>&1 | grep Cookie
> Cookie: a=1
< Set-Cookie: a=1; Path=/
< Set-Cookie: b=2; Path=/