cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question regarding cURL and libcurl features

From: Bob Schader <bobs_at_product-des.com>
Date: Wed, 24 Jan 2001 09:16:08 -0500

"curl -T PART -C SIZE URL -v"
Is this something that should work in the current version of curl,
or does it need modification to support it? I can test it on
my server if needed.
Bob

Daniel Stenberg wrote:
>
> On Wed, 24 Jan 2001, Bob Schader wrote:
>
> > Ranged PUT can be used resuming uploads if the client is clever enough.
>
> [ cut out ]
>
> > The client would probably do a HEAD request to find out the current
> > length, maybe curl can do that.
>
> So. Judging from this, I have a question. Would the following work?
>
> URL=http://domain.com/full/path/to/file
>
> Get the size of the existing file:
>
> curl -I $URL
>
> We imagine the size in variable SIZE.
>
> Put a part of a file (let's call it PART) onto the remote file starting where
> the existing one ends:
>
> curl -T PART -C SIZE URL -v
>
> It could work. At least this does a PUT request with a range header.
>
> --
> Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
>
> _______________________________________________
> Curl-library mailing list
> Curl-library_at_lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/curl-library

-- 
______________________________________________________________________
Bob Schader
Computer Systems Manager
Product Design International, Inc.
4880 36th St. SE, Suite 100
Grand Rapids, MI 49512
Voice: (616) 667-2600 x104
Fax:   (616) 667-2692
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-01-24