• Post Reply Bookmark Topic Watch Topic
  • New Topic

path in cookie

 
Robert Kennedy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am tryng to write a cookie to the request. How do I indicate the root path or the equivalent of setPath=("/")

req = "GET "+uri+" HTTP/1.0\r\nCookie: JSESSIONID="+session+"\r\n\r\n";

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RFC 2965 covers all aspects of Cookie headers and the formats required and includes examples.

A google search will find you a copy.

Bill
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!