I've been trying to configure the user and password for proxy authentication from the configured properties while using Apaches HttpComponent's httpclient, but with no success. All examples I have found refer to methods and classes that are no longer available, such as HttpState
and setProxyCredentials
.
So, can anyone give me an example of how to configure the proxy credentials?
Instead of NTLM one can use just plain old username and password on 4.3+ httpClient, as follows: