This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to download a file from https URL. The issue is that if I insert the URL to the iexplorer I redirect to the login page.
This url is accessible only after passing the login.
I want to be able to download this file with java code, but in order to do this I need to passed the login page. As I understand I need to have some kind of session here. I need to do a login and than based on the response try to navigate to the desire URL.
Can any one give me an example or reference to article about it?
Ps. I try Google, but I think I didn�t insert the right keywords.
I'd say this is a case for the Jakarta HttpClient library, or -probably more convenient- the jWebUnit library. Both let you begin web sessions, let you run through the login page automatically, deal with session cookies (assuming that's how sessions are implemented), and let you access any URL that the web app provides.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to passed a login page with java code