cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: http 1.1 file upload (with ranges) (fwd)

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 20 Aug 2008 14:44:07 -0700

On Wed, Aug 20, 2008 at 12:51:04PM -0700, Craig Perras wrote:
> I'm trying to use curl to upload large files piecemeal using ranges.
> Unfortunately, it seems to always upload the entire file. My server
> responds to the expect/continue header with "Accept-Ranges: bytes", but
> that doesn't seem to help.
>
> Am I missing something? Here's a trace from trying to upload curl's
> changes file (version 7.18.2).
>
> curl -v -v --upload-file changes -r 100001-103000 http://localhost:8080/foo/bar/baz

curl's -r option is intended for downloads only. The -C option is for use
with uploads, but it only allows setting a start offset, not an ending
offset. I don't think curl allows arbitrary upload ranges.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-20