curl-library
controlling number of bytes downloaded by libcurl
From: Mike Redding <mredding_at_edgestream.com>
Date: Tue, 7 Apr 2009 14:46:12 -0700
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?
thanks,
Mike
Received on 2009-04-07