I've got a list of unique Urls that essentially generate XLS files that I would like to all download at the same time. I've tried using the answer to this post: Download multiple files async and wait for all of them to finish before executing the rest of the code to no avail... I think it is because I am trying to download files that all require the same CookieContainer
and session information. (In other words, this is behind a logged in / authenticated session).
Here is what I want:
- Download each file in the list and then process it after the individual file is completed downloading
- Wait for all of the files to be finished downloading and processing 2.
I'm using Fiddler to watch the files as they download, and it seems that some start to download, but almost all of them don't. Sometimes, it returns an error saying that the remote host ended the session, however, I know that the remote host can handle these multiple requests.
How do I set all of these files to download at the same time behind the authenticated session?