OK, your code uses an ExecInterceptor though, not a HttpRequestInterceptor.
I’ll give it a try.
Cheers
Giovanni
From: Oleg Kalnichevski
Date: Friday, 14 July 2023 at 10:24
To: HttpClient User Discussion
Subject: Re: Preemptive Basic auth with Apache HttpClient 5.2
On Thu, 2023-07-13 at 17:37 +0
On Thu, 2023-07-13 at 17:37 +, D'Ascola, Giovanni wrote:
> I did, but what I tried didn’t work. I’ve put the code in my original
> email.
> I ended up manually adding the Authorization header to the request in
> the same interceptor.
> It works, but it’s not very nice, I’d rather let the framew