title: NTLM authentication in Android app
body: <p>I'm using JCIFS library found <a href="http://hc.apache.org/httpcomponents-client-ga/ntlm.html" rel="nofollow">here</a> to use NTLM authentication in my android app.The app worked fine when it just went to a site and parsed an xml, but now that I added the NTLM auth it doesn't seem to be working. Can anyone tell from this snippet of code if where the problem is between the httpclient and the inputstream?</p>
  
  <pre><code>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();
  </code></pre>