httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

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

Open wise-dachshund opened this issue 2 years ago • 1 comments

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 ?

wise-dachshund avatar Mar 31 '23 06:03 wise-dachshund

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=/

milahu avatar Dec 28 '23 15:12 milahu