curl-library
Re: cURL HTTP support for File Streams without known upload size
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 25 Jan 2007 12:51:13 +0100 (CET)
Date: Thu, 25 Jan 2007 12:51:13 +0100 (CET)
On Thu, 25 Jan 2007, Davinder Kumar wrote:
> Is there any support in cURL HTTP library to upload file (using PUT) without
> knowing the size of the file?
Yes. You can just go ahead and submit the file, if the server accepts it.
Or you can add a header like "Transfer-Encoding: chunked" with
CURLOPT_HTTPHEADER, which probably is what you're looking for. It will cause
libcurl to do the upload "chunky" style.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-01-25