How does IDM resume a paused HTTP download?

2

How do programs like Internet Download Manager resume a download from a new URL? I think that it may store the original URL of the page in which the download link found and opens that page to refresh the download URL. Is it so?

EDIT:

What do you mean by "refresh expired URL"?

Currently am downloading a file in idm and now I have paused the download. After, say 3 hours am resuming the same download and the URL has been expired. IDM couldn't continue the download and it takes me to the original webpage where the download link exist saying please wait while refreshing the URL and now I have to click the download link again and IDM catches the new URL. Now it resumes the download from new URL.

Sankar V

Posted 2013-10-11T21:10:40.053

Reputation: 121

What do you mean by "refresh expired URL"? – Doktoro Reichard – 2013-10-11T22:24:44.973

@doktoro k. currently am downloading a file in idm and now I have paused the download. After, say 3 hours am resuming the download and the url has been expired. IDM couldn't continue the download and it takes me to the original webpage where the download link exist saying please wait while refreshing the url and now I have click the download link again and idm catches the new url. Now it resumes the download from New url. – Sankar V – 2013-10-12T04:39:08.293

Answers

2

An HTTP transaction consists of a request and a reply. The request can specify more than just the name of the file, but also certain characteristics of the reply.

Commonly supported characteristics include language, document type (e.g. a music file vs plain text file), character encoding, and (importantly) the byte range.

For example, if a download is interrupted 500KB into a 1MB download, IDM will specify that it only wants bytes 501KB through 1MB when it resumes the download from a different URL, skipping the already downloaded part.

This also allows IDM (and other tools) to use multiple connections to download a file. For example, three connections would make three independent requests: one for the first third of the file, one for the middle third, and one for the final third. In some cases this can be faster than using only one connection for the whole file.

If the server is unable or unwilling to supply the requested characteristics in its reply, it will return an error reply instead (e.g. Requested range not satisfiable). In which case IDM would have to re-download the whole file over a single connection.

Andrew Lambert

Posted 2013-10-11T21:10:40.053

Reputation: 7 136

0

Hmm, I think I now get what you are saying.

I am supposing that you are trying to download a file from download sites such as MediaFire or RapidShare. As those sites implement control measures to avoid unregistered users from depleting their resources, when you pause your download, their servers assume that the connection has been lost, mainly because they haven't received any communication (i.e. download or upload request) from your part.

When you resume your download, although the file's URL doesn't change, the service in practice forces you to redo the previous steps, as it doesn't remember that you tried to download a file before. When you get around and actually download the file, IDM knows that the file you have paused and the one you are now downloading are the same (because the URL is the same). As such, (and this might vary from service to service), IDM requests the server to only send the parts you don't have.

To answer your question, IDM doesn't refresh the URL, as they are the same. It doesn't make sense for it to refresh the URL as you say, because the files might not be the same if the URLs are different.

Doktoro Reichard

Posted 2013-10-11T21:10:40.053

Reputation: 4 896

ya its ok but what about the file URLs that are hosted on hosting site like Amazon.com which expires the url after some time say 10 mins. the URL actually returns a xml stating that they are expired with specifying a time – Sankar V – 2013-10-12T17:33:15.997

I never had that specific problem, but then again I never downloaded anything from Amazon. If you're referring to e-books (paid ones) they would give you a temporary link, afterwards the server software would delete that link internally. – Doktoro Reichard – 2013-10-12T18:30:20.617

fine you can check it by downloading a file from slideshare.com to clearly know what I meant to be. – Sankar V – 2013-10-12T19:28:36.997

0

  1. Let IDM re-download the file from new address for few seconds then pause it.
  2. Open IDM
  3. Right-click and select properties of the file you just start to download
  4. Copy Address of the new file
  5. Right-click and select properties of the old file
  6. Paste in the address field.
  7. Click OK
  8. Go to IDM and resume to download the old file.

That's it. It should work.

Raman

Posted 2013-10-11T21:10:40.053

Reputation: 1