I did see the question about setting the proxy for the JVM but what I want to ask is how one can utilize the proxy that is already configured (on Windows).
Here is a
UPDATE: you need to have the System Property java.net.useSystemProxies set to true for my solution below to work.
If you use java.net.URL.openStream()
to get an InputStream
for the web resource content you automatically get the same proxy used as Internet Explorer would use for that URL.
No need to go to the Java Control Panel or to display the proxy used.