curl-library
Re: Question regarding cURL and libcurl features
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 24 Jan 2001 14:40:45 +0100 (MET)
Date: Wed, 24 Jan 2001 14:40:45 +0100 (MET)
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-libraryReceived on 2001-01-24