Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging into a website using java

Tags:

java

autologin

I'm looking for a solution to login to a website using a java program.

I found a good script over here:

http://www.dreamincode.net/forums/blog/114/entry-2715-login-to-a-website-from-java/

But the trouble is with handling cookies? How can I get the cookie info. send by the server? Thanks

like image 310
sreejith Avatar asked Mar 09 '11 07:03

sreejith


2 Answers

Handling cookies using the java.net.* API

like image 69
ayush Avatar answered Oct 11 '22 22:10

ayush


Check JAAS , to use it for automatic log-in and if you are using IBM WebSphere check "Trust Association Interceptor"

like image 37
Bassem Reda Zohdy Avatar answered Oct 11 '22 22:10

Bassem Reda Zohdy