Laughing1599 / cocoa-rest-client

Automatically exported from code.google.com/p/cocoa-rest-client
Other
0 stars 0 forks source link

Can't set Cookie in Reques Header #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I user an API to get the session name and the session id
2. I sent a header as Cookie sessname=sessid
3. I get a 401 status

Could you add support for cookies?

Original issue reported on code.google.com by petit.ga...@gmail.com on 6 Oct 2011 at 10:24

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 22 Oct 2011 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 22 Oct 2011 at 2:38

GoogleCodeExporter commented 8 years ago
Hm, I wasn't able to reproduce this. In a simple test, setting the header field 
"Cookie" successfully sent a cookie to the server. There is also some implicit 
cookie support built in. If the server sets a cookie, it will be returned with 
the next request to the same server. However, setting Cookie explicitly in the 
header fields overrides it.

Original comment by mike.mat...@gmail.com on 30 Oct 2011 at 1:32

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 6 Nov 2011 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 6 Nov 2011 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 8 Dec 2011 at 3:04