I have a Java application that is trying to access a web service via http proxy. The Java app is 3rd party app for which we don\'t have access to source code.
Its la
One also needs to specify NT domain for NTLM authnetication to work.
-Dhttp.proxyUser=MyDomain/username
or by setting
-Dhttp.auth.ntlm.domain=MyDomain
And you also MUST explicitly instruct HttpClient to take system properties into account, which it does not do by default
CloseableHttpClient client = HttpClients.createSystem();
or
CloseableHttpClient client = HttpClients.custom()
.useSystemProperties()
.build();