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

proxy applet

 
Johannes Postma
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does someone know how I can create a connection to a remote host via a proxy? I use in my applet Sockets. The solution must work for http and https. I know that if I use URLConnection the proxy settings are automatically read from the browser settings. This is not the case by Sockets. Do I read first the System properties and how do I know if authentification is needed? Is this also part of one of the properties?

Regards,

Johannes
 
Oricio Ocle
Ranch Hand
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These system properties can be useful for you:



Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic