• Post Reply Bookmark Topic Watch Topic
  • New Topic

Proxy username & password  RSS feed

 
Intan Y. Purbasari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Could anybody give me some example code of entering a username and password of a proxy server? I need to access Internet from my swing application, but my proxy server requires a username and password. How do I put them in my program? I've found out that it can be done with Authentication and PasswordAuthentication classes, but I don't know how to use them.
TIA.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this.
- Peter
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!