Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the system HTTP proxy configuration in Java [duplicate]

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

In the Java Control Panel, you can set a proxy configuration. How can I access to that proxy configuration in order to open URL connections behind a proxy?

like image 835
Auron Avatar asked Oct 19 '25 15:10

Auron


1 Answers

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

currently all samples I've seen use SUN's undocumented APIs (com.sum packages), which result in warnings at compile time...

like image 173
Anton Kraievyi Avatar answered Oct 21 '25 03:10

Anton Kraievyi