Hi, I have a question a preemptive authentication and auth types in alhpa5.
First of all, I'm doing some non-repeatable requests, but I always do 1 repeatable short request first.
I can use this first request to authenticate to the proxy (figuring out the out type etc), but the following requests should be preemptive if possible. I use all three possible auth types (basic, digest, and NTLM).
First question: is the above doable with httpclient 4.0-alpha5?Second question: when I register credentials with httpclient, I can only set them once. So how can set the correct credentials if I don't yet know the auth type? Or should I use the first request to determine the auth type? Currently there are UsernamePasswordCredentials (for BASIC and DIGEST) and NTCredentials (for NTLM). Or is it possible to *always* just use NTCredentials for the other auth types as well?
Third question: in alpha5 the following code no longer compiles:
HttpClientParams.setAuthenticationPreemptive(true);
What is the correct way to use preemptive authentication now?
Regards,
Sebastiaan
smime.p7s
Description: S/MIME Cryptographic Signature
