cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Sending an unbuffered PUT without chunked encoding

From: Charles Pritchard <chuck_at_jumis.com>
Date: Thu, 20 Nov 2014 16:14:49 -0800

On Thursday, November 20, 2014, Daniel Stenberg <daniel_at_haxx.se> wrote:

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

Any recommendations on how it would be introduced to the command line tool?

Perhaps as a flag that the --data-binary family picks up?

I was thinking that data binary/transfer could just check to see if the
header Content-Length has been set, then not buffer if it has.

-Charles

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