curl-users
Re: http 1.1 file upload resume
Date: Thu, 21 Aug 2008 16:28:53 -0700
On Thu, Aug 21, 2008 at 04:15:48PM -0700, Craig Perras wrote:
> 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.
If you find it useful, then there's a good chance that someone else might,
too.
> 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.
You'll probably want to query the server for the current file size as you
suggest. KNOWN_BUG #8 is that curl doesn't do that by itself on uploads.
>>> 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.htmlReceived on 2008-08-22