cURL / Mailing Lists / curl-users / Single Mail

curl-users

boundary condition for --continue-at - and --fail

From: David Byron <DByron_at_everdreamcorp.com>
Date: Thu, 26 Jun 2003 14:35:27 -0700

Using both

curl 7.10.5 (win32) libcurl/7.10.5 OpenSSL/0.9.7a zlib/1.1.4

and

curl 7.10.4 (i686-pc-cygwin) libcurl/7.10.4 OpenSSL/0.9.7b zlib/1.1.4

do the following:

$ curl --fail --output emacs.ps.gz --continue-at -
http://www.gnu.org/manual/emacs/ps/emacs.ps.gz

and let it run to completion. Then, do it again. I saw the message:

** Resuming transfer from byte position 1029660
  % Total % Received % Xferd Average Speed Time
Curr.
                                 Dload Upload Total Current Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:00 --:--:--
0
curl: (22) The requested file was not found

and the return value is 22.

Without --fail, the file not found message doesn't appear, and the return
code is 0. I'd like it to be that way with --fail as well. I'll be looking
in the code to see if I can come up with a fix. Do you agree that it would
be nice for curl to return 0 when trying to resume download of a file that's
already complete?

Thanks much.

-DB

--
David Byron                   dbyron_at_everdream.com
Everdream                     http://www.everdream.com
6591 Dumbarton Circle         voice:(510)818-5550
Fremont, CA  94555            fax:(510)818-5510
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Received on 2003-06-26