aspose file tools*
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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61221
    
  66

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]
 
wood burning stoves
 
subject: Using a servlet to log into a webpage