Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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 ]
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic