controlling number of bytes downloaded by libcurl
Date: Tue, 7 Apr 2009 14:46:12 -0700
I am trying to control the number of bytes downloaded by libcurl.
Libcurl seems to want to download the whole file I specify in CURLOPT_URL.
InternetReadFileEx() in Windows allows you to specify the number of
bytes to download in the INTERNET_BUFFERS structure.
I have tried using CURLOPT_BUFFERSIZE, but libcurl just ignores this
request and downloads the whole thing.
Is there a way to download a specific number of bytes instead of the whole
file with libcurl?
Received on 2009-04-07