I would like to know if it is possible to maintain an authentication (like a session with login and password in php) on a website from a java program, and if anyone had any lead on the subject or some reading for me, that would be great.
thanks
You can use the HttpClient class. Once you have authenticated with the website the server will send you a cookie that you have to send with each successive request in order for the server to think that you are logged in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With