Multipart Downloading in C#?

瘦欲@ 提交于 2019-12-03 04:42:20

I'm with svens on this, http://www.devx.com/dotnet/Article/22533/0/page/2 seems to say it all.

Pardon the posting to an article older than the Christ, but this:

http://www.codeproject.com/Articles/21053/MyDownloader-A-Multi-thread-C-Segmented-Download-M

seems to be closer to what was asked.

The currently marked 'correct answer' is good for supplying the server side partial download routine, it goes someway to explaining what the HTTP Range headers do, but it's no download client.

The System.Net.HttpClient class should be able to download your files. Just call this class from a thread or a thread pool and you can download lots of files at the same time.

The System.Net.WebrequestMethods.Http namespace is a good place to start. You probably want to use a Get to pull down the files that you want.

http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.http.aspx

you can use BITS (Background Intelligent Transfer Service) a good article more information http://msdn.microsoft.com/en-us/library/aa362708(VS.85).aspx http://www.codeproject.com/KB/IP/bitsman.aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!