• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookies

 
Jukka Nevalainen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I'm programming kinda Socket Connection to access a website's user-only sites. Therefore I access the site for the first time and get the cookie called 'PHPSESSID'. I remember it and use it for the upcoming connections, but this doesn't work. Therefore I checked the cookies that are transmitted on other call of the website (with HTTP Live Headers - firefox plugin). There was a big amount of data and I copied it and tried it with it. Than it worked
My Request looked like that:


So, does anyone of you know where I could get all these params? because they aren't listed if I access the website for the first time.

Or.. is there even a mechanism in java to handle cookies?

Thank you very much for the help!

Regards,
Reto
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache HttpClient handles cookies.
 
Jukka Nevalainen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply! I guess my problem is solved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic