What is the best way to download files via HTTP using .NET?

Posted by Shamika on Stack Overflow See other posts from Stack Overflow or by Shamika
Published on 2010-03-24T05:09:07Z Indexed on 2010/03/24 5:53 UTC
Read the original article Hit count: 223

Filed under:
|
|
|

In one of my application I'm using the WebClient class to download files from a web server. Depending on the web server sometimes the application download millions of documents. It seems to be when there are lot of documents, performance vise the WebClient doesn't scale up well.

Also it seems to be the WebClient doesn't immediately close the connection it opened for the WebServer even after it successfully download the particular document.

I would like to know what other alternatives I have.

© Stack Overflow or respective owner

Related posts about c#

Related posts about webclient