Hi. I have a requirement to write a Java application that does the following:
- Simulate that I browsed to a certain web page that has a login form and post a given username and password as if I entered them and pressed Login.
- Next, maintain the session so it can get the contents of some pages. This is also needed to be done through posting form parameters and get the returned content.
Anyone has an idea how to do it?
I think Jakarta's HttpClient fits here but i need some help about how to use it in a case like this.
Thanks in advance to every contributer.