Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10072

Re: proxy baffement

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: proxy baffement
Date 2011-11-19 13:49 -0800
Organization Canadian Mind Products
Message-ID <0j8gc79dr725b2td6q686o3lvvqlprqbb8@4ax.com> (permalink)
References <qefbc75va1lc98u1i4db78eo4ipcmeeeeh@4ax.com>

Show all headers | View raw


On Thu, 17 Nov 2011 18:31:51 -0800, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>Is my Java program supposed to be proxy-aware and do something
>different?

In poking around to figure out what is going on I discovered a proxy
can be configured in the Windows control panel.  There is also a place
to configure one in the Java Control panel.

I found a note suggesting that if you ticked "automatically detect
settings" in the Windows control panel, you might end up with a proxy.

There are three Java system properties.
System.setProperty( "proxySet", "true" );
System.setProperty( "http.proxyHost", proxyHostName );
System.setProperty( "http.proxyPort", Integer.toString( proxyHostPort
) );

It seems all you need to hook up a proxy is its dns name or ip.  Even
though there are about 5 differerent proxy protocols, I gather the
machines sort that out themselves.

I also discovered inside Google Chrome in "under the hood" you can
change proxy settings. However, I think that is just a hook into the
Windows control panel.


-- 
Roedy Green Canadian Mind Products
http://mindprod.com
I can't come to bed just yet. Somebody is wrong on the Internet. 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-17 18:31 -0800
  Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-17 19:30 -0800
  Re: proxy baffement Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-18 08:11 +0000
    Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 02:34 -0800
    Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 02:44 -0800
      Re: proxy baffement Gene Wirchenko <genew@ocis.net> - 2011-11-18 09:44 -0800
        Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 10:06 -0800
      Re: proxy baffement Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-19 11:18 +0000
        Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-21 10:29 -0800
    Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 03:12 -0800
  Re: proxy baffement Steven Simpson <ss@domain.invalid> - 2011-11-18 22:06 +0000
  Re: proxy baffement Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-19 11:10 +0000
  Re: proxy baffement Roedy Green <see_website@mindprod.com.invalid> - 2011-11-19 13:49 -0800

csiph-web