• Advertisement

Archived

This topic is now archived and is closed to further replies.

Accessing sections of a resource

This topic is 4973 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to be able to explore a feature of resumable downloads. For example, downloading a file and the connection is broke or the user stops it temporarily. Through sockets and C I want to be able to do it, but honestly, I''m not sure how to begin researching this properly. Resources or links would be great, thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
You need to look into information about specific protocols, like HTTP or FTP, depending on which is relevent to your needs. FTP, for example, has a simple resume command. I believe HTTP might have a similar request code.

On a resume, the server is told the size of the file currently and then it begins sending the file from that point. It might be a good idea to do a checksum of the partial file and comparing it on the server with a checksum of that section.

Share this post


Link to post
Share on other sites
quote:
Original post by ironfroggy
You need to look into information about specific protocols, like HTTP or FTP, depending on which is relevent to your needs. FTP, for example, has a simple resume command. I believe HTTP might have a similar request code.

On a resume, the server is told the size of the file currently and then it begins sending the file from that point. It might be a good idea to do a checksum of the partial file and comparing it on the server with a checksum of that section.


Hmm, that is my problem then. I should have realized that this has to dependent on the protocol. Hopefully the rfc''s will have some info in there on this, specifically http.

Share this post


Link to post
Share on other sites
Ah, a request with a partial GET in the headers is the key to this. So simple, thank you.

Share this post


Link to post
Share on other sites

  • Advertisement