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

Connecting to a website

 
V Bose
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whats the general technique to login to a website from within a java progam?
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The general technique is that you ask the user for the user id and password and then pass it to the web site.

The specific technique depends entirely on the mechanism the web site uses for authentication: form, basic, digest, etc.

Please give us more details on the problem that you are trying to solve.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic