开发者

how do i do authentification on android

开发者 https://www.devze.com 2023-01-18 20:47 出处:网络
I need to authenticate to use a rest web service. I make a HttpClient httpclient = new DefaultHttpClient();

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 so开发者_如何学Curce code uding the HttpClient class in the org.apache.commons.SOMETHING_HTTP, but that doesn't exist on Android.

Cheers


This may help you : http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/

0

精彩评论

暂无评论...
验证码 换一张
取 消