[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: http_proxy environment variable



Mark Howard wrote:
Hi,
  I've recently needed to use a http proxy with java.net methods. To set
this, the options  -Dhttp.proxyHost=wwwcache.bris.ac.uk
-Dhttp.proxyPort=8080 have to be set on the java command. j2se1.4 did
not recognise http_proxy environment variables, even though they are
set.
I've not yet tried with other JVMs, but if they do the same, should this
be reported as a bug?


hi,

there does exist 2 main-areas for proxy-configurations under java.

=> Proxy-Setup for Java-Applications
=> Proxy-Setup for Java-Applets


1. java-application use the following proxy-variables
*****************************************************

Java-Applikationen
------------------
http.proxyHost (default: <none>)
http.proxyPort (default: 80 if http.proxyHost specified)
http.nonProxyHosts (default: <none>

ftp.proxyHost (default: <none>)
ftp.proxyPort (default: 80 if ftp.proxyHost specified)
ftp.nonProxyHosts (default: <none>)

socksProxyHost
socksProxyPort (default: 1080)

user.name

More infos under
=> http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html


Older Variables
---------------
proxySet=true
proxyHost=
proxyPort=


if u like to activate a proxy u should always set the new AND the old form!



2. java-applets use the following proxy-variables
*************************************************

Java-Plugin (Applets)
---------------------
javaplugin.proxy.usebrowsersettings=false
javaplugin.proxy.bypass=ggg, hhh
javaplugin.proxy.auto.url=http\://www.xxx.de
javaplugin.proxy.settings=http\=111;https\=222;ftp\=333;gopher\=444;socks\=555


3. Other variables
------------------
Sometimes u will read in diff. forums that more or other varibles does exist or will be used. but thats not true for the standard-java.

cu
oliver




Reply to: