curl-users
Re: Partial Downloads
Date: Fri, 28 Jan 2011 09:43:06 -0500
I am using curl 7.15.5
$curl --version
curl 7.15.5 (i386-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
Does the fact that it dosn't work in the form 0-1024 have anything to
do with the windows FTP server that I am using?
On 1/28/11, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> 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
>
-------------------------------------------------------------------
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