This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending cookie from applet

 
pavan in
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to send the cookie from applet back to the server?
If yes, how?
Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18014
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm out of practice as far as CREATING cookies in an applet, but the actual transmission of the cookies themselves is automatic when you use HttpURLConnection. In fact, the cookies on the containing page are inherited into the applet. Thids is especially important since one of them is often the one that manages the server session.
 
pavan in
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out.
We can send cookie using HttpURLConnection.setRequestProperty("Cookie", value);
value will be in form 'key=value'...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic