HTTP 斷點續傳依賴 Range / Content-Range 標頭:
// 客戶端請求
Range: bytes=1024-2047
// 伺服器回應
HTTP/1.1 206 Partial Content
Content-Range: bytes 1024-2047/5000
Content-Length: 1024
uploadedBytes。Range: bytes=uploadedBytes-。uploadedBytes。Range 請求解析。class CUploadTask : public CObject {
CString m_url, m_filePath;
ULONGLONG m_uploaded, m_total;
HINTERNET m_hRequest;
// 方法:Start(), Pause(), Resume(), OnProgress()
};