set proxy dependent on java-properties for proxy (http.proxyHost,
http.proxyPort, http.nonProxyHosts)