cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: deprecated -c switch

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 28 Feb 2001 16:12:53 +0100 (MET)

On Wed, 28 Feb 2001, Robert Linden wrote:

> I got the new curl-version (7.6.1) and see that -c is now deprecated, and
> has been replaced by -C. With -C I have to give the offset myself, and it
> therefore doesn't work with multiple-resumes from different offsets each.

It should if you use '-C -'. That is supposed to replace the former -c. I'm
in a shortage of single-letters! ;-)

> At least that's how I understand it. I liked -c but it also doesn't work
> with multiple files, because it only get's the file-size once. I fixed
> that with the following patch to main.c:

Please use 'diff -c' or 'diff -u' to produce a more useful patch.

> This utilises a new configuration-variable "auto_resume_from" which is
> set for -c and unset for -C. The problem was that "resume_from" wasn't 0
> after the first file, so for subsequent ones the new offset wasn't
> calculated.

It sounds like a good approach. At least if '-C -' doesn't work, but we
should probably make sure that works. Possibly with a fix like the one you
suggest.

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
Received on 2001-02-28