cURL / Mailing Lists / curl-users / Single Mail

curl-users

http 1.1 file upload resume

From: Craig Perras <cperras_at_u.washington.edu>
Date: Thu, 21 Aug 2008 16:15:48 -0700 (PDT)

Thanks to Dan Fandrich, I understand that curl doesn't support ranges for
http file-upload (only the -C option). 2 questions:

1) would that feature be useful? if so i may be able to provide a patch.

2) how is the -C option useful in practice? say, after 2 GB of uploading a
3 GB file, the connection is closed. how does the client know where to
resume? the only sure way i know of is to upload parts of a file (eg: with
ranges), and wait for the server to respond with an "ok" for each part.
maybe another way is to query the server to ask it the current size of the
file.

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-22