Downloader

  • Thread starter Thread starter BC
  • Start date Start date
B

BC

Hi all,

Currently I am working on a project that requires download large size
files. I need to write a simple application that can start, pause, and
restart downloads. Similar to applications like GetRight, where you can
pause your download, and restart the download later (i.e. it will start
the download again from the completed percentage).

I am looking for information on how to implement the restart download
section. Any help will be much appreciated.


Cheers,

Benny
 
Benny,

One option you have is that you can store the file on a server which is
using the HTTP 1.1 protocol (I believe it is 1.1 and not in 1.0). There is
a header that you can send to the server to indicate which byte to start the
download from. All you have to do is send the byte that you want to start
from, and then append to your file from that point on.

Hope this helps.
 
Hi Nicholas,

Thanks for the help.
is using the HTTP 1.1 protocol.

Is this mean the server require to support HTTP 1.1 protocol in order to
allow restart downloads?
byte to start the download from. All you have to do is send the byte
that you want to start
from, and then append to your file from that point on.

Do you have any code examples which I can look at?


Cheers,

Benny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top