I use the JCIFS library found here to use NTLM authentication in my Android application. The application worked fine when it just went to the site and parsed the xml, but now that I have added NTLM auth, it does not seem to work. Can anyone tell from this code snippet if the problem is between httpclient and input stream?
DefaultHttpClient client = new DefaultHttpClient();
client.getAuthSchemes().register("ntlm", new NTLMSchemeFactory());
client.getCredentialsProvider().setCredentials(new AuthScope("http://www.musowls.org",80),
new NTCredentials(username, password, null, "musschool"));
HttpGet request = new HttpGet("http://www.musowls.org/assignments/assignmentsbystudentxml.aspx");
HttpResponse resp = client.execute(request);
HttpEntity entity = resp.getEntity();
InputStream inputStream = entity.getContent();
source
share