cURL / Mailing Lists / curl-library / Single Mail


Re: controlling number of bytes downloaded by libcurl

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

On Apr 7, 2009 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