AW: Preemptive authentication in Http Client 5 Async

2022-02-10 Thread Naber, Peter
Damn, That's right, there was something else. It took me days to figure it out. Sorry, I had already completely forgotten about it. Regards, Peter -Ursprüngliche Nachricht- Von: Christophe Darville Gesendet: Donnerstag, 10. Februar 2022 16:02 An: HttpClient User Discussion Betreff: Re

AW: Preemptive authentication in Http Client 5 Async

2022-02-10 Thread Naber, Peter
It was worth a try 😊 -Ursprüngliche Nachricht- Von: Christophe Darville Gesendet: Donnerstag, 10. Februar 2022 10:44 An: HttpClient User Discussion Betreff: Re: Preemptive authentication in Http Client 5 Async Thank you very much Peter. I missed the point that HttpCacheContext was ext

AW: Preemptive authentication in Http Client 5 Async

2022-02-10 Thread Naber, Peter
Hi, ok, than a little bit more code 😊 public CloseableHttpClient getHttpClient() throws IOException, NoSuchAlgorithmException { final SocketConfig socketConfig = SocketConfig.custom().setTcpNoDelay(true).setSoKeepAlive(true).build(); String tlsString = S

Re: AW: Preemptive authentication in Http Client 5 Async

2022-02-09 Thread Oleg Kalnichevski
On 2/9/2022 5:15 PM, Naber, Peter wrote: Hi, I use the HttpCacheContext but I think with the httpclient5 the preemtive authentication is implemented the same way. public HttpCacheContext getHttpCacheContext(final URL aURL) throws Exception { final HttpHost targetHo

AW: Preemptive authentication in Http Client 5 Async

2022-02-09 Thread Naber, Peter
Hi, I use the HttpCacheContext but I think with the httpclient5 the preemtive authentication is implemented the same way. public HttpCacheContext getHttpCacheContext(final URL aURL) throws Exception { final HttpHost targetHost = new HttpHost(aURL.getProtocol(), aURL.ge