Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Shawn Heisey
On 8/10/23 14:03, Petar Tahchiev wrote: Hi Jochen, I don't have 2 different SSL certificates. I have no idea what SNI is but that seems to be the only difference in the log from curl and httpclient5. https://en.wikipedia.org/wiki/Server_Name_Indication Basically it's a feature of TLS that all

Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Gary Gregory
Hi Peter, If we can improve our migration guide, then I'm all for it. I'm not sure how to condense this into a simple before and after example though. Gary On Fri, Aug 11, 2023, 8:01 AM Petar Tahchiev wrote: > Hi Oleg, > sorry but I am new with this. "This, of course, is not going to work" - >

Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Petar Tahchiev
Hi Oleg, sorry but I am new with this. "This, of course, is not going to work" - what is not going to work and why not? "You need to pass HttpHost with the IP address of the physical endpoint. This cannot be done with Simple* messages. They are simple for a reason." - I don't understand this. Wher

Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Oleg Kalnichevski
On Fri, 2023-08-11 at 13:08 +0300, Petar Tahchiev wrote: > Hello, > > so I'm getting closer. Because I was > using PoolingAsyncClientConnectionManager I decided to replace it > with PoolingHttpClientConnectionManager and it worked. So the problem > is > not in the SNI but in the PoolingAsyncClient

Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Petar Tahchiev
Hello, so I'm getting closer. Because I was using PoolingAsyncClientConnectionManager I decided to replace it with PoolingHttpClientConnectionManager and it worked. So the problem is not in the SNI but in the PoolingAsyncClientConnectionManager. I am following this guide exactly: https://hc.apache

Re: How Do I Set SNI(Server Name Indentification)

2023-08-11 Thread Oleg Kalnichevski
On Thu, 2023-08-10 at 22:40 +0300, Petar Tahchiev wrote: > Hmm, > > I tried now setting the Host header: > > > httpGet.setHeader("Host", "localhost"); > > This is wrong. You should not be doing that. You should let HttpClient generate the Host header when appropriate. HttpClient will also aut