This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Issues with sending cookies to server

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
There are 29 Knuts in one Sickle, and 17 Sickles make up a Galleon. 42 tiny ads in a knut:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic