cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: controlling number of bytes downloaded by libcurl

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Tue, 7 Apr 2009 17:12:41 -0500

On Apr 7, 2009 mredding_at_edgestream.com wrote:

> Is there a way to download a specific number of bytes instead of the whole
> file with libcurl?

You can use CURLOPT_RANGE if the server supports it, otherwise you
could simply abort the transfer from inside your write callback.

 - Jeff
Received on 2009-04-08