cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Sending an unbuffered PUT without chunked encoding

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Nov 2014 23:06:15 +0100 (CET)

On Thu, 20 Nov 2014, Charles Pritchard wrote:

> But I have the file size ahead of time and have supplied it in the headers
> as Content-Length.

Unfortunately it doesn't help in this case. "-T -" assumes you don't know the
size. The size actually has to be known by curl and set to libcurl with the
CURLOPT_INFILESIZE_LARGE option.

So, while libcurl allows such a request to be done, curl doesn't offer the
necessary controls to enable it with the command line tool.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-11-20