Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-14 Thread D'Ascola, Giovanni
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

Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-14 Thread Oleg Kalnichevski
Utils.consume(response.getEntity()); return null; }); } } > From: Oleg Kalnichevski > Date: Thursday, 13 July 2023 at 18:29 > To: HttpClient User Discussion > Subject: Re: Preemptive Basic auth with Apache HttpClient 5.2 > On Thu

Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-13 Thread D'Ascola, Giovanni
July 2023 at 18:29 To: HttpClient User Discussion Subject: Re: Preemptive Basic auth with Apache HttpClient 5.2 On Thu, 2023-07-13 at 17:02 +, D'Ascola, Giovanni wrote: > I did look at the examples, but the Preemptive Basic Auth > one<https://eur02.safelinks.protection.outlook.com/?url

Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-13 Thread Oleg Kalnichevski
HttpClient.execute() directly. > And why? What stops you from manipulating the execution context from an interceptor? Oleg > Giovanni > > From: Oleg Kalnichevski > Date: Thursday, 13 July 2023 at 17:03 > To: HttpClient User Discussion > Subject: Re: Preemptive Basic a

Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-13 Thread D'Ascola, Giovanni
17:03 To: HttpClient User Discussion Subject: Re: Preemptive Basic auth with Apache HttpClient 5.2 On Thu, 2023-07-13 at 15:27 +, D'Ascola, Giovanni wrote: > Is there a way to implement preemptive basic authentication with > Apache HttpClient 5.2 using a HttpRequestInterceptor similar t

Re: Preemptive Basic auth with Apache HttpClient 5.2

2023-07-13 Thread Oleg Kalnichevski
On Thu, 2023-07-13 at 15:27 +, D'Ascola, Giovanni wrote: >  Is there a way to implement preemptive basic authentication with > Apache HttpClient 5.2 using a HttpRequestInterceptor similar to how > it's done here (accepted > response)