• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issues with sending cookies to server

 
SAFROLE YUTANI
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a program that logs into a web site. On the first request, and after successful login, the server sends the following cookie header to my program...
Set-Cookie TaiChiChuan=kashmir=784b3d6d-bda5-4a89-996f-e0532acda531&tomorrow=30&timeoutofmind=3/30/2004 7:18:35 PM&semperfi=3/30/2004 7:48:35 PM; path=/
I extract the cookie from the response and resend the cookie to the server on the next request. For some strange reason, the server sends a response back to me indicating that my broswer does not support cookies. Should I set 1 cookie or multiple cookies for each name/value pair between the "&" delimiter from the initial set-cookie value above?
For example, is this correct? (1 cookie value)
Cookie TaiChiChuan=kashmir=784b3d6d-bda5-4a89-996f-e0532acda531&tomorrow=30&timeoutofmind=3/30/2004 7:18:35 PM&semperfi=3/30/2004 7:48:35 PM
...or is this the correct method? (multiple cookie values)
Cookie TaiChiChuan=kashmir=784b3d6d-bda5-4a89-996f-e0532acda531
Cookie tomorrow=30
Cookie timeoutofmind=3/30/2004 7:18:35 PM
Cookie semperfi=3/30/2004 7:48:35 PM
Thanks
[ March 30, 2004: Message edited by: SAFROLE YUTANI ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!