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.
The moose likes Servlets and the fly likes Using a servlet to log into a webpage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "Using a servlet to log into a webpage" Watch "Using a servlet to log into a webpage" New topic

Using a servlet to log into a webpage

Aron Daburn
Ranch Hand

Joined: Mar 18, 2007
Posts: 36
I need to get a servlet to pull info off of a page that I am sent to after logging into a website.

The above code gets me the login page. What I can't figure out is how to log in to get the needed page after login.

Any ideas on how to go about doing this?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63211

I would assume that the authentication is there just to prevent such activity. That said, you might want to look into tools such as HttpClient.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Using a servlet to log into a webpage
jQuery in Action, 3rd edition