Suggestion for the HTTP client: allow selection of a local address

Klaus Malorny Klaus.Malorny at knipp.de
Wed Aug 8 14:43:52 UTC 2018



Hi,

I just discussed with a colleague that we dreadfully miss the ability in the old 
HttpURLConnection to set the address to which the client locally binds, which we 
require to get through the firewalls of our business partners when connecting 
from a multihomed system. This repeatedly caused us to use third-party 
libraries, which are powerful on the one hand, but cumbersome on the other.

With the new HTTP2 client in mind, I wanted to tell him, wait, with Java 9+, it 
will be better. But I checked first and discovered that there is still no way to 
do so.

So, when you eventually revise the API, it would be nice if you could consider 
the addition of such a feature.

Regards,

Klaus



More information about the net-dev mailing list