Search code examples
asp.netdownloadashxdownload-manager

Supporting resumable HTTP-downloads through an ASHX handler?


We are providing downloads of our application setups through an ASHX handler in ASP.NET.

A customer told us he uses some third party download manager application and that our way of providing the files currently does not support the "resume" feature of his download manager application.

My questions are:

What are the basic ideas behind resuming a download? Is there a certain HTTP GET request that tells me the offset to start at?


Solution

  • Resuming a download usually works through the HTTP Range header. For example, if a client wants only the second kilobyte of a file, it might send the header Range: bytes=1024-2048.

    You can see page 139 of the RFC for HTTP/1.1 for more information.