Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2020-08-13 Thread Nicolas Henneaux
Hi, Were you able to have a quick look at what I have done to see whether it might be better integrated into OpenJDK? Do you think the use case is valuable to be better handled? I actually use such mechanisms in production to have a proper view on what are the IP available for a service API. In c

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2020-07-29 Thread Nicolas Henneaux
Hi Daniel, It is needed since the hostname sent in the HTTP client is the IP instead of the actual hostname to force the usage of a single IP. However, a specific SSLContext is used to ensure the hostname TLS validation is still done. Usage of the IP in the HTTP request

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2020-07-29 Thread Daniel Fuchs
Hi Nicolas, On 29/07/2020 13:20, Nicolas Henneaux wrote: System.setProperty("jdk.internal.httpclient.disableHostnameVerification", Boolean.TRUE.toString()); System.setProperty("jdk.httpclient.allowRestrictedHeaders", "host"); I don't believe it's a good idea to disable/customize hostname veri

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2020-07-29 Thread Nicolas Henneaux
Hi there, I haven't got news about this subject but I have built a library that works around the problem Github resilient-httpclient . It overrides the HTTP host header plus the SNI field in TLS handshake. It also provides custom TLS server name v

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-12-17 Thread Nicolas Henneaux
Hi Daniel, Have you got the chance to look at my previous mail? Thank you in advance, Best regards, Nicolas On Sun, 17 Nov 2019 08:49 Nicolas Henneaux, wrote: > Hi Daniel, > > Thank you for your answer ! > > Such mechanism to provide an *InetSocketAddress* from a hostname would be > a great

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-11-18 Thread Nicolas Henneaux
Hi Daniel, Thank you for your answer ! Such mechanism to provide an *InetSocketAddress* from a hostname would be a great improvement and matches the usage I have. I have an implementation using the IP in the URL in https://github.com/nhenneaux/resilient-httpclient/tree/master/single-host-httpcli

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-11-15 Thread Daniel Fuchs
monitoring of resolved IP addresses Hi Nicolas, Sorry for the late reply... On 07/11/2019 17:13, Pavel Rappo wrote: >> On 7 Nov 2019, at 14:24, Nicolas Henneaux wrote: >> >> Hi, >> >> *I am trying to build an HTTP client based on java.net.http.HttpClient and >&g

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-11-15 Thread Bernd Eckenfels
: OpenJDK Network Dev list Betreff: Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses Hi Nicolas, Sorry for the late reply... On 07/11/2019 17:13, Pavel Rappo wrote: >> On 7 Nov 2019, at 14:24, Nicolas Henneaux wrote: >> >> Hi, >> >> *I am

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-11-15 Thread Daniel Fuchs
Hi Nicolas, Sorry for the late reply... On 07/11/2019 17:13, Pavel Rappo wrote: On 7 Nov 2019, at 14:24, Nicolas Henneaux wrote: Hi, *I am trying to build an HTTP client based on java.net.http.HttpClient and I would like to have some control on the IP addresses resolved under the hood.* I w

Re: [java.net.http.HttpClient] Active monitoring of resolved IP addresses

2019-11-07 Thread Pavel Rappo
A more appropriate mailing list would be net-dev (cc'ed). When replying, please remove jdk-dev from the addressees. > On 7 Nov 2019, at 14:24, Nicolas Henneaux wrote: > > Hi, > > > > I am not sure it is the right mailing list. If it’s not, I apologize in > advance and could you tell me which