Friday, June 15, 2012

Re: Re: [android-developers] about HTTP Auth in DownloadManager

On Fri, Jun 15, 2012 at 5:01 PM, nicefuture <nicefuture@126.com> wrote:
> You probably need to add the proper (basic) authentication header using the
> addRequestHeader() for this to work:
>
> does it only affect the next download session, will it affect all the
> download session?
>

I haven't check the source, but it should affect all downloads linked
to this requests (i.e., redirects, retries).

> btw, is basic scheme api available in android?
>

Yes, but here you need to build the header yourself. Just
Base64 encode your username:password to construct the
header.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate