Resume Ability for a simple Download Manager (C++ - WinInet)

Hello

I'm writing a very simple download manager which just can Download - Pause - Resume,
how is it possible to resume the download from the exact point of the file that stop before,
well, actually the only thing I'm looking for is how to set the file pointer in server and then I can download it from the exact point i wanted by InternetReadFile (Any Other Functions are accepted if you know a better way for it). btw, InternetSetFilePointer Never work for me :) and I never want to use BITS.
I thing this can be happen by sending a header but don't know what and how to send it.

Regards,
john smith.
To probe the download resume feature of a server, you may send a HEAD request to the server supplying a Range header with arbitrary values. If the response code is 206, then resume is supported.

See HTTP protocol specification for more details:
http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p5-range-latest.html#range.requests


PS - Is more easy to use a library for this task, as libcurl:
http://curl.haxx.se/libcurl/
Thx my friend
Topic archived. No new replies allowed.