How to write a MultiPart download C ++ - program

I want to write a C ++ program to upload files using HTTP. For the sake of training, I would like to implement multiprocessing loading in my program, like DownThemAll! does. Cannot execute lseek on linux socket. I assume that this will be some kind of HTTP parameter that we will need to specify, indicating where to start downloading the file. Thus, we can have several connections open to the server. It is right? What are the HTTP headers for this?

+1
c ++ linux sockets multipart
source share
3 answers

I suggest you take a look at section 14.35.1 "Byte ranges" of the HTTP specification:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35

+3
source share

You need a Range HTTP header.

+1
source share

There is a library based on C ++ and ASIO called Urdl.

ASIO Link: http://asio.sourceforge.net

Urdl Link: http://think-async.com/Urdl/doc/html/index.html

0
source share

All Articles