【发布时间】:2012-04-05 05:57:08
【问题描述】:
我在我的应用程序中使用 AndroidHttpClient。现在我需要对请求使用基本授权。
http://developer.android.com/reference/android/net/http/AndroidHttpClient.html
在文档中,他们说我可以使用 HttpRequestInterceptor,但我不知道该怎么做。没有添加此拦截器的方法。理想情况下,我想像他们在这里一样添加它: http://dlinsin.blogspot.com/2009/08/http-basic-authentication-with-android.html
有人知道为什么它对我不起作用或 Google 文档有误吗?
【问题讨论】: