Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7906569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:02:29+00:00 2026-06-03T11:02:29+00:00

I have few PC’s that run on slow Internet connection network + they use

  • 0

I have few PC’s that run on slow Internet connection network + they use VPNs so the connection becomes really slow.
I have my own app that must download updates from external server via HTTP, but if the update is around few MBs it doesn’t get downloaded.
So what i am asking is how to implement download method so i can resume the download if the connection is aborted.

I code on Windows, C++, it would be good if i can achieve this using WinAPI.

I think internet explorer has this feature, so it must be implemented with WININET.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:02:33+00:00Added an answer on June 3, 2026 at 11:02 am

    HTTP resume is somewhat a misnomer as the connection is usually terminated when the download is “paused” and then when it is resumed, a new request is made.

    The new request then contains the range specification, so the server only sends a portion of the whole requested file.

    Usually you would first fire a HEAD request to get the whole filesize.

    Request

    HEAD /big_file.zip HTTP/1.1
    Host: www.example.com
    

    Response

    HTTP/1.0 200 OK
    Accept-Ranges: bytes
    Content-Length: 2000000
    Content-Type: application/zip
    

    Then you can send a request like this to only download bytes from 1,000,000 to 2,000,000 (if your first download stopped at 1,000,000 bytes):

    Request

    GET /big_file.zip HTTP/1.1
    Host: example.com
    Range: bytes=1000000,2000000
    

    Response

    HTTP/1.0 206 Partial Content
    Accept-Ranges: bytes
    Content-Length: 1000000
    Content-Range: bytes 1000000-2000000/2000000
    Content-Type: image/jpeg
    
    ...
    

    That would be the general principle. You can implement it in C++ using cUrl, boost::asio, Windows sockets, … There are many different ways and many good tutorials.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have few question in this regard When you create an internet page, does
I have few 'so' files that I need to load in maven java project
I have few rows in table that contain 10 co-morbidities. <table> <!-- Co-Morbidities1 -->
I have few pages that I show from my main page inside iframe .
Have few thousand reports that have consistently formatted tabular data embedded within them that
I have few dynamic dropdowns that the created on change of a dropdownlist, on
I have few types that derive from simplified Base as shown below. I am
I have few classes that I need to annotate with a name so I
I have few controls on my MainForm in Winforms application. For example control that
I have few jquery tabs on a usercontrol that loads a separate user control

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.