Welcome

Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed. See ya around!

Categories

Tag Cloud

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

How-to set proxy properties in Java

Sometimes you need to connect to internet from your java programs. It’s easy to do via URLConnection. But when you are behind the proxy server, your program doesn’t know how to deal with it. Configuration of proxy server is fairly easy. All you need to do is to setup following system properties:

System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", "name_of_proxy_server");
System.setProperty("http.proxyPort", "proxy_server_port_number");
Share this:
  • Print this article!
  • Digg
  • Reddit
  • Facebook
  • del.icio.us
  • TwitThis
  • Google Bookmarks
  • Technorati
  • LinkedIn
  • StumbleUpon

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>