On Apr 28, 11:26 pm, Wouter <[email protected]> wrote:
> How can i do the authentication? i have tried with a authscope and
> BasicCredentialsProvider but i think i am not doing it good!
I think this is all you need:
DefaultHttpClient client = new DefaultHttpClient();
client.getCredentialsProvider().setCredentials(
new AuthScope(HOST, PORT),
new UsernamePasswordCredentials(username, password));
--
Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---