views:

34

answers:

1

Hi,

I need to authenticate to use a rest web service.

I make a

HttpClient httpclient = new DefaultHttpClient();

an there must be a way to use UsernamePasswordCredentials on that client.

Can somebody please point me to a relevant example?

I have found some source code uding the HttpClient class in the org.apache.commons.SOMETHING_HTTP, but that doesn't exist on Android.

Cheers