NTLM Authentication; cannot call aspx page from java
HttpClient client = new HttpClient();
client.getState().setCredentials(AuthScope.ANY,
new NTCredentials(userName, pwd, host, domain) );
System.out.println(httpServiceURL);
method = new GetMethod(httpServiceURL);
method.setDoAuthentication( true );
int status = client.executeMethod(method);
System.out.println(status + "\n" + method.getResponseBodyAsString());
Any help is greatly appreciated. Thanks,
Edit: This is not NTLM, but Integrated windows security.
Re: NTLM Authentication; cannot call aspx page from java
What version of Java are you using?
I hear that Java 6.0 works well with windows security now.
But granted I haven't had a chance to try it yet.