Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bypass a proxy server without modifying system properties

843811Sep 16 2005 — edited Sep 16 2005
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 14 2005
Added on Sep 16 2005
1 comment
310 views