cURL / Mailing Lists / curl-users / Single Mail

curl-users

[BUG] --continue and multiple URLs

From: Björn Stenberg <bjorn_at_haxx.se>
Date: Thu, 21 Jun 2001 21:37:52 +0200 (CEST)

There seems to be a bug in 7.7.3. I haven't tested with 7.8, but I can't
recall any discussion about this on the list so I guess it's still there.

I did:

# curl -O ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-1.tgz

...but interrupted it after about a meg, realizing it was better to use the
multiple URL method. So I ran a new command:

# curl -O -C - "ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-{1,2,3}.tgz"

[1/3]: ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-1.tgz -->
X402src-1.tgz
--_curl_--ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-1.tgz
** Resuming transfer from byte position 1179648
  % Total % Received % Xferd Average Speed Time Curr.
                                 Dload Upload Total Current Left Speed
100 21.6M 100 21.6M 0 0 72022 0 0:05:15 0:05:15 0:00:00 67491

[2/3]: ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-2.tgz --> X402src-2.tgz
--_curl_--ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-2.tgz
100 16.9M 100 16.9M 0 0 72243 0 0:04:05 0:04:05 0:00:00 54970

[3/3]: ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-3.tgz --> X402src-3.tgz
--_curl_--ftp://ftp.funet.fi/pub/X11/XFree86/4.0.2/source/X402src-3.tgz
100 7936k 100 7936k 0 0 71299 0 0:01:53 0:01:53 0:00:00 52736

...but when trying to unpack the files, I got a surprise:

# tar xzf X402src-1.tgz
# tar xzf X402src-2.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

It turns out the -2 and -3 files were resumed/ranged the same as the first
file, so they are missing the first 1179648 bytes!

/Björn
Received on 2001-06-21