I want to write an application that connects to a server to download an image so that after receiving the header response with the pic size, I can spawn one or more threads to download the image and measure download speed...
I’m just doing this for fun and would like to know how to approach the problem.
More specifically:
How do I get the header back so that I can parse it and find the image size?
Once that’s achieved how do I download the image using more than one thread?
Thanks!