Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using a servlet to log into a webpage

 
Aron Daburn
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic