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 8680247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T21:11:58+00:00 2026-06-12T21:11:58+00:00

Ok, I understand that maybe very stupid question, but i never did it before,

  • 0

Ok, I understand that maybe very stupid question, but i never did it before, so i ask this question. How can i download file (let’s say, from the internet) using Thread class?

  • 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-12T21:11:59+00:00Added an answer on June 12, 2026 at 9:11 pm

    What do you mean with “using Thread class”? I guess you want to download a file threaded so it does not block your UI or some other part of your program.

    Ill assume that your using C++ and WINAPI.
    First create a thread. This tutorial provides good information about WIN32 threads.
    This thread will be responsible for downloading the file. To do this you simply connect to the webserver on port 80 and send a HTTP GET request for the file you want. It could look similar to this (note the newline characters):

    GET /path/to/your/file.jpg HTTP/1.1\r\n
    Host: www.host.com\r\n
    Connection: close\r\n
    \r\n
    \r\n
    

    The server will then answer with a HTTP response containing the file with a preceding header. Parse this header and read the contents.

    More information on HTTP can be found here.

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

Sidebar

Related Questions

I understand that this is a very broad question, but I was very curious
I know that this is a very commonly asked question, but all of the
Maybe this is a very silly question, but the book I'm reading instructed me
I understand that this question may be subjective, this is why I need an
I must apologize if this is a duplicate question, but I can't seem to
This is a very general question that's not related to a specific language. I'm
It seems I don't understand something simple about Protocol Buffers, but this is very
I am very confused right now, maybe you can help me to understand the
The idea behind this app is very simple: download a file. However this app
Not that it matters strictly, and maybe I just don't yet fully understand how

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.