This simple library provides downloading over Http. It supports Pause and Resume in both for download and download queue
• Download file with just one line of code
• Get most useful properties of the download source such as ContentLength, Resumeability, ServerFileName..
• Due to event based programming, managing downloads is so easy
• Reports progress and speed every time when the progress is changed
• Create download queue with DownloadQueue and manage your download list
Get AltoHttp at NugetInstall-Package AltoHttp
HttpDownloader downloader = new HttpDownloader(targetUrl,targetPath);
downloader.Start();
//PAUSE
downloader.Pause();
//RESUME
downloader.Resume(); //downloader.Resume(filePathToResume) resumes from the existing file
Queue using
DownloadQueue myQueue = new DownloadQueue();
myQueue.Add(targetUrl1,targetPath1);
myQueue.Add(targetUrl2,targetPath2);
myQueue.StartAsync();
//PAUSE
myQueue.Pause();
//RESUME
myQueue.ResumeAsync();
Chrome integration
private void btnChromeIntegration_Click(object sender, EventArgs e)
{
try
{
AltoHttp.BrowserIntegration.Chrome.AllInOneIntegrator.TryAddIntegration(Directory.GetCurrentDirectory(),
Assembly.GetExecutingAssembly().Location);
MessageBox.Show("Integration added succesfully!");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
• Using DownloadInfoReceived event you can ensure the headers (Content-Length, Resumeability, FileName) are received
• Resume capability improved to be able to resume on some sites that uses chunked stream e.g Google Drive• Native messaging methods added for who wants to integrate with browser using extension
• To prevent resume on file corruption, file validation based on MD5 added
• New exceptions defined to be able to handle exceptions in UI
• Download in some sites which Content-Length returns -1 (Unknown) succesfully handled
• DemoApplication changed and improved
• Chrome browser integration provider methods have been added.Integration is done with just one line of code• DemoApplication changed and improved