cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Partial Downloads

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 27 Jan 2011 23:19:57 -0800

On Thu, Jan 27, 2011 at 09:00:39PM -0500, Dejan Tolj wrote:
> I am trying to download a partial FTP file, curl ftp://link -r 0-10000
> -O but it downloads the whole file. However this works and downloads
> the last bits, curl ftp://link -r -10000 -O
>
> How to make it download the first x bits?
> I have tested other ranges, but it seems that -XXXX is the only range
> that works, I think the FTP server is windows

What version of curl are you using? Both those forms work for me, to
download the first and last parts of the file, respectively. Test cases
135 and 1057 also verify these forms.

>>> Dan
-------------------------------------------------------------------
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 2011-01-28