Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-12-20 Thread Jaikiran Pai
I've now created https://bugs.openjdk.org/browse/JDK-8346705 to track this. -Jaikiran On 18/11/24 10:16 pm, Nicolas Henneaux wrote: Hi Daniel, Thanks for your answer! I know it is not supported hence I have built some years ago a library around HttpClient to do that. https://github.com/nhen

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-25 Thread Jaikiran Pai
Hello Nicolas, On 25/11/24 9:57 pm, Nicolas Henneaux wrote: Hi Jaikiran, I still have not received your answer. Hopefully I got it from the mailing list archive but it is not really convenient. Are you subscribed to the net-dev mailing list? Since my replies are reaching net-dev archives, I

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-25 Thread Jaikiran Pai
Hello Nicolas, On 25/11/24 2:05 pm, Nicolas Henneaux wrote: Hi Jaikiran, For unknown reason, I have not received your reply. Not sure what happened but here's my previous reply https://mail.openjdk.org/pipermail/net-dev/2024-November/024726.html. The issue I have is SslParameters#ServerN

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-18 Thread Jaikiran Pai
Hello Nicolas, On 18/11/24 10:16 pm, Nicolas Henneaux wrote: Hi Daniel, ... I think it is a regression introduced in Java22 since configured SslParameters#ServerNames is now discarded in favour of the HTTP hostname which is not valid if the hostname is an IP. Do you mean that, after that c

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-18 Thread Nicolas Henneaux
Hi Daniel, Thanks for your answer! I know it is not supported hence I have built some years ago a library around HttpClient to do that. https://github.com/nhenneaux/resilient-httpclient I made a pull request with the fix I would need to be applied https://github.com/openjdk/jdk/pull/22211/files

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-18 Thread Daniel Fuchs
Hi Nicolas, If I understand correctly, you would like to be able to select which IP address is used when connecting to a host that has several IP addresses. This functionality is currently not supported by the HttpClient. best regards, -- daniel On 18/11/2024 15:56, Nicolas Henneaux wrote: In

Re: SNI not sent with Java 22+ using java.net.http.HttpClient.Builder#sslParameters

2024-11-18 Thread Nicolas Henneaux
I dig a bit deeper on this subject and I think it has been introduced by https://github.com/openjdk/jdk/commit/ba837b4bfa2dea85653d8a8fccd0817a569b4378#diff-25625467b43d4f533bace30665a2d8aaaf60ec7323bd424ff7683e5afd722d14R130 using the hostname from the HTTP request and not using sslParameters#s