标签: android http authentication rest
我需要进行身份验证才能使用其他网络服务。
我做了一个
HttpClient httpclient = new DefaultHttpClient();
必须有一种方法可以在该客户端上使用UsernamePasswordCredentials。
UsernamePasswordCredentials
有人可以指点我一个相关的例子吗?
我在org.apache.commons.SOMETHING_HTTP中找到了一些关于HttpClient类的源代码,但这在Android上并不存在。
干杯
答案 0 :(得分:1)
这可能会对您有所帮助:http://lukencode.com/2010/04/27/calling-web-services-in-android-using-httpclient/