cURL / Mailing Lists / curl-users / Single Mail

curl-users

http 1.1 file upload (with ranges) (fwd)

From: Craig Perras <cperras_at_u.washington.edu>
Date: Wed, 20 Aug 2008 12:51:04 -0700 (PDT)

Hi -

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

> PUT /foo/bar/baz HTTP/1.1
> Content-Range: bytes 100001-103000/103261
> User-Agent: curl/7.18.2 (i386-pc-win32) libcurl/7.18.2 OpenSSL/0.9.8h zlib/1.2.3
> Host: localhost:8080
> Accept: */*
> Content-Length: 103261
> Expect: 100-continue
>
< HTTP/1.1 100
< Content-Length: 0
< Content-Type: text/plain
< Accept-Ranges: bytes
< HTTP/1.1 200 OK
< Date: Wed, 20 Aug 2008 17:04:10 GMT
< Accept-Ranges: bytes
< Content-Type: text/html
< Content-Length: 0
< Server: CherryPy/3.1.0

any help is appreciated!

thanks,
--craig
-------------------------------------------------------------------
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