cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl_easy_setopt option for download size

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Jan 2010 23:58:34 +0100 (CET)

On Wed, 6 Jan 2010, Bhadraji D wrote:

> I am trying to download a file from http server. My question is ,let us
> suppose my download file size is 200k and I want only 20k file for download.
>
> Is there option to download only 20k data of file from 200k file.

curl_easy_setopt implies libcurl and then you're better off on the
curl-library mailing list.

With curl you'd use --range, and with libcurl CURLOPT_RANGE.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-06