There are various options you can use for this.
I suggest HTMLUnit.
- Use HTMLUnit API – this has methods to login, passing the username and password.
- HTMLUnit itself allows you to download file.
More Related Contents:
- How to implement REST token-based authentication with JAX-RS and Jersey
- Handling passwords used for auth in source code
- How to handle authentication popup with Selenium WebDriver using Java
- Configuring Spring Security 3.x to have multiple entry points
- cURL equivalent in JAVA
- How do I keep a user logged into my site for months?
- How to redirect to Login page when Session is expired in Java web application?
- Authenticating against Active Directory with Java on Linux
- Get login username in java
- Java Swing: How can I implement a login screen before showing a JFrame?
- Preemptive Basic Auth with HttpUrlConnection?
- How to manually set an authenticated user in Spring Security / SpringMVC
- Httpclient 4, error 302. How to redirect?
- Using NTLM authentication in Java applications
- User authentication on a Jersey REST service
- java.io.IOException : No authentication challenges found
- Multiple WebSecurityConfigurerAdapters: JWT authentication and form login in spring security
- Websocket Authentication and Authorization in Spring
- dll missing in JDBC
- Sending POST request with username and password and save session cookie
- Customize authentication failure response in Spring Security using AuthenticationFailureHandler
- How to handle authentication popup in Chrome with Selenium WebDriver using Java
- Is there a way to redirect to another Action class without using on struts.xml
- How to handle HTTP authentication using HttpURLConnection?
- NTAG212 Mifare Ultralight with Authentication
- Java EE authentication: how to capture login event?
- How to exclude one url from authorization
- Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407” via https
- RestTemplate with pem certificate
- overriding or setting web service endpoint at runtime for code generated with wsimport