Without changing code, how to force httpClient to use proxy by environment variables or JVM arguments

user496949 picture user496949 · Mar 2, 2011 · Viewed 34.5k times · Source

I found setting http.proxyHost and http.proxyPort is of no use to httpClient. How to force the httpClient to use proxy by environment variables or VM arguments or something like those without changing code?