On Thu, Feb 09, 2012 at 10:05:11AM -0800, Rohan Desai wrote:
I thought something like that. But after looking in the code it seems like it
just assigns some curl_off_t variable the passed in value and later uses that
variable to populate the content length. Shouldn't the internal curl_off_t get
On Wed, Feb 08, 2012 at 06:31:51PM -0800, Rohan Desai wrote:
For most requests, i provide a curl_off_t for file size. However for 0-byte
(empty) files i use:
curl_easy_setopt(curl handle, CURLOPT_INFILESIZE_LARGE, 0L)
This is causing my PUT to sometimes go out with huge Content-Length
I thought something like that. But after looking in the code it seems like
it just assigns some curl_off_t variable the passed in value and later uses
that variable to populate the content length. Shouldn't the internal
curl_off_t get zeroed out regardless of whether the value passed to
Hello,
I am using libcurl to send an HTTP PUT. To set the Content-Length on upload
I use a call to:
curl_easy_setopt(*curl handle*, CURLOPT_INFILESIZE_LARGE, *file size*)
For most requests, i provide a curl_off_t for *file size*. However for
0-byte (empty) files i use:
curl_easy_setopt(*curl