Link to home
Start Free TrialLog in
Avatar of ARACK04
ARACK04

asked on

log in to a web page

I already know how to read the contents of a web page in, but what I would like to do is actually log into a web page with a username and password, and then download the html contents of what comes back.  Anyone know how to take care of this???

I do realize the security concerns with having a password existing in plain text in my java code.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This link will show you how to get the cookie from a connection

http://javaalmanac.com/egs/java.net/GetCookies.html
That's was quick!

Thanks for the points and the grade :-)