Bypass a proxy server without modifying system properties
843811Sep 16 2005 — edited Sep 16 2005Hi all,
I'm developing an application that have to bypass a proxy server. I'm using the classes URL and URLConnection. I have been serching how to do this and found many examples showing it by setting the system properties, like in
System.setProperty("http.proxyHost", "xxxxxxxxx");
System.setProperty("http.proxyPort", "80").
But I think there is a problem. If I have two applications running on the same system and both of them set these properties with different values, for example trying to bypass different proxies, I'd have a conflict on the system.
Does anybody know whether there is another way to bypass the proxy server without modifying the system properties?
Thank you!