一般情况下,如何恢复下载的工作? [英] In general, how does resuming a download work?

查看:171
本文介绍了一般情况下,如何恢复下载的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是互联网下载管理器。它恢复从早期的暂停点下载的能力。其他下载管理器,如Firefox的也提供这种能力。如何将这些算法一般的工作?如何他们通常跟踪,他们已经离开,并让服务器知道形式,其中以恢复?

I'm using "Internet Download Manager". It has the ability to resume a download from an earlier paused point. Other download managers, such as Firefox's also offer this ability. How do these algorithms work in general? How does they normally keep track of where they've left off, and allow servers to know form where to resume?

推荐答案

有没有算法。

2616 ,其中包括HTTP / 1.1,对于各种范围支持它;这是一个客户端程序如何告诉服务器跳过一些[兆]字节,从而恢复离开的地方下载。但是,服务器的可以的忽略范围检索请求从而阻止/禁止续传。

Look at RFC 2616, which covers HTTP/1.1, for the various range support it has; this is how a client program can tell the server to skip a number of [mega]bytes and thus "resume" the download where it left off. However, servers may ignore Range Retrieval Requests and thereby thwart/prohibit resuming downloads.

记住何处恢复是留给客户端,但被平凡存储为字节数已下载字段某处。

Remembering where to resume is left up to the client, but is trivially stored as a "number of bytes already downloaded" field somewhere.

这篇关于一般情况下,如何恢复下载的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆