/*. Net/C #: implement the Http Web Client tool class that supports resumable download of multiple threads (C # DIY HttpWebClient)
* Reflector: The System. Net. WebClient is reloaded or added:
* DownLoad and Upload Methods!
* Great changes to DownLoad!
* Added DataReceive and predictionoccurrs events!
* For more information about the HTTP protocol used for server-client interaction, see:
* Enables custom connections for file downloads to support resumable multi-thread download of FlashGet! JSP/Servlet implementation!
* Http://blog.csdn.net/playyuer/archive/2004/08/02/58430.aspx
* Enables custom connections for file downloads to support resumable multi-thread download of FlashGet! C #/ASP. Net implementation!
* Http://blog.csdn.net/playyuer/archive/2004/08/02/58281.aspx
*/
Namespace Microshaoft. Utils
{
Using System;
Using System. IO;
Using System. Net;
Using System. Text;
Using System. Security;
Using System. Threading;
Using System. Collections. Specialized;
/// <Summary>
/// Record the location of the downloaded byte
/// </Summary>
Public class DownLoadState
{
Private string _ FileName;
Private string _ AttachmentName;
Private int _ Position;
Private string _ RequestURL;
Private string _ ResponseURL;
Private int _ Length;
Private byte [] _ Data;
Public string FileName
{
Get
{
Return _ FileName;
}
}
Public int Position
{
Get
{
Return _ Position;
}
}
Public int Length
{
Get
{
Return _ Length;
}
}
Public string AttachmentName
{
Get