Working on a download manager. If the download manager is generic to just work with any download url, how could it handle the download which requires user to login or accept some agreements/terms? Inside browser, such as FF's download manager, it will work since the cookie is sent each time to server.
1. Keep-alive (default 300 seconds) will make the URL still work for 5 mins. But after that, it will need cookie to make download work.
2. If resuming download from middle of the file, i.e. bytes=(value > 0), then the download works fine. The server only validates the download request for the initial request starting from byte 0. This makes sense. It will make resuming download still works since it's already authenticated.
Tuesday, April 7, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment