How to get HTTP proxy configuration in Java

Is it possible to get the system proxy configuration in Java?

In the Java control panel, you can configure the proxy configuration. How can I access this proxy configuration to open URL connections behind the proxy?

+3
source share
2 answers

ah, just look at that question. there was a sample with a solution.

currently all the samples I've seen use SUN undocumented APIs (com.sum packages), which leads to warnings at compile time ...

+3
source

Java . -, API- webstart/applet. . JniWrapper WinPack JDIC libs - , , .

+1

Source: https://habr.com/ru/post/1698587/


All Articles