[android-developers] about HTTP Auth in DownloadManager
Hi, All:
Sorry to disturb wide-spread. I found in ICS, it originally did not support HTTP authentication in DownloadManager/DownloadProvider, that is, if the application use DownloadManager/downloadProvider to start downloading and if the website need HTTP authentication, then the 401 status will recorded in the download record in download provide database, and DownloadManager/downloadProvider will not prompt authentication dialog for user to input userid/password.
Then, I tried to implement the http authentication in my application, BUT I failed, I found the behavior is very strange, below is the step:
1. I already know the website's userid and password, I tested using the path contain userinfo, as below:
2. In my guess, the Download Manager should work well, and status 200 should be reported. BUT, still status 401 is reported. And from the tcpdump, it is very strange, it obviously successfully be authenticated and retrieve the content, but then the client start a new http get, which cause to the status 401 occurred. I wonder why the extra http get procedure happened??
The tcpdump attached. And the key capture as below, Hope your help:
Best Regards
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home