Thursday, 12 May 2016

Setting a proxy for the JVM

Use system properties:
-Dhttp.proxyHost=212.100.20.77 -Dhttp.proxyPort=8080 -Dhttps.proxyHost=212.100.20.77 -Dhttps.proxyPort=8080
Be careful that this affects all requests on this JVM and in particular can affect internal requests. localhost and 127.0.0.1 are included as nonProxy requests by default, and you can add further internal hosts as needed. Specific app/library specific control should be used where possible. Full details are here

No comments:

Post a Comment