wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Cookies" Watch "Cookies" New topic
Author

Cookies

Jukka Nevalainen
Greenhorn

Joined: Dec 14, 2009
Posts: 9
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

Joined: Oct 29, 2001
Posts: 8843
    
    7

Apache HttpClient handles cookies.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jukka Nevalainen
Greenhorn

Joined: Dec 14, 2009
Posts: 9
Thank you for your reply! I guess my problem is solved
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookies
 
Similar Threads
Cookies in Android Apps
Sessions without cookies
creating secure Java apps
JSON and http header
Cookie access with EL expression