Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Downloading an NTLM-authentication-protected file

I want to download a file from a Sharepoint server that protected with NTLM authentication from my Android application. I found some tutorials and couldn't successful.

I tried using The Java CIFS Client Library and did not successful again.

I investigated this post: Manipulating SharePoint list items with Android (JAVA) and NTLM Authentication but i do not want to consume a webservice, i just want to download a file.

Any suggestions?

like image 524
Oguz Ozkeroglu Avatar asked Jul 06 '12 10:07

Oguz Ozkeroglu


1 Answers

Did you use standard Java java.net.Authenticator http://developer.android.com/reference/java/net/Authenticator.html? If it doesn't support NTLM check http://developer.android.com/reference/org/apache/http/auth/NTCredentials.html and related org.apache.http package. Also look at blog http://mrrask.wordpress.com/2009/08/21/android-authenticating-via-ntlm/ where it is shown how to use it. In par

like image 147
Artem Oboturov Avatar answered Sep 18 '22 19:09

Artem Oboturov