Well, you are right, there is probably a bug somewhere in libcurl, as with -v the FTP server returns the file size :
$ curl -v -o ICMSHFCSTINIT -r 100-200 -n ftp://hendrix.meteo.fr/tmp/ICMSHFCSTINIT * About to connect() to hendrix.meteo.fr port 21 (#0) * Trying 137.129.242.7... connected * Connected to hendrix.meteo.fr (137.129.242.7) port 21 (#0) < 220-# HPSS 7.4 Parallel FTP Daemon on hendrixftp5 < # coming from beaufixlogin2.meteo.fr < # < < 220 hendrixftp5 FTP server (HPSS 7.4 PFTPD V1.1.1 Mon Feb 12 14:03:04 CST 2018) ready. > USER marguina < 331 Password required for marguina. > PASS XXXXXX < 230 User marguina logged in as margu...@hendrixcore.hpss.meteo.fr > PWD < 257 "/home/marguina" is current directory. * Entry path is '/home/marguina' > CWD tmp < 250 CWD command successful. > EPSV * Connect data stream passively < 229 Entering Extended Passive Mode (|||55828|) * Trying 137.129.242.7... connected * Connecting to 137.129.242.7 (137.129.242.7) port 55828 > TYPE I < 200 Type set to Image. > SIZE ICMSHFCSTINIT < 213 File: ICMSHFCSTINIT, Size = 860160 * Offset (100) was beyond file size (0) * Remembering we are in dir "tmp/" ** Resuming transfer from byte position 100 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connection #0 to host hendrix.meteo.fr left intact curl: (36) Offset (100) was beyond file size (0) > QUIT < 221 Goodbye. * Closing connection #0 What should I do ? ________________________________ From: curl-library <curl-library-boun...@cool.haxx.se> on behalf of Dan Fandrich via curl-library <curl-library@cool.haxx.se> Sent: Thursday, September 12, 2019 5:12 PM To: curl-library@cool.haxx.se <curl-library@cool.haxx.se> Cc: Dan Fandrich <d...@coneharvesters.com> Subject: Re: Adding a feature to curl: disabling partial range verification On Thu, Sep 12, 2019 at 03:01:14PM +0000, philippe marguinaud via curl-library wrote: > Well, from what curl says, it returns a size of zero: > > $ curl -o ICMSHFCSTINIT -r 100-200 -n ftp://hendrix.meteo.fr/tmp/ICMSHFCSTINIT > ** Resuming transfer from byte position 100 > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left Speed > 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 > curl: (36) Offset (100) was beyond file size (0) What's the output with -v ? ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html