Reputation: 535
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
Upvotes: 2
Views: 385
Reputation: 232
This may help you : http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/
Upvotes: 1