On Mon, Apr 2, 2012 at 1:13 PM, Michael Banzon <mich...@banzon.dk> wrote:
> You need to add "Basic" in front of the "Authorization" parameter (if
> you are using basic auth.). The base64 encoded string also needs both
> username and password.
>
> This is from a working example:
>
> method.addHeader("Authorization", "Basic " + Base64.encodeBytes(new
> String(this.username + ":" + this.password).getBytes()));
>

There is really no need to re-implement functionality already found in
HttpClient.
(unless is broken, like the digest auth implementation)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to