curl / Mailing Lists / curl-library / Single Mail


Re: Time to disable "Expect: 100-continue" by default?

From: Daniel Stenberg <>
Date: Fri, 7 Jul 2017 13:47:05 +0200 (CEST)

On Thu, 6 Jul 2017, Daniel Stenberg wrote:

> Is it time to remove the automatic Expect: header use and only do it on
> demand?

Okay, I got a lot of repsonses to this, both here and on twitter. Most people
said "rip it out".

There are however also people who worry about their long established use of
"curl -LT file..." on properly behaving servers, which redirects curl
somewhere before curl sends anything. A fine use case I'd say.

This makes me the think that Dan's suggestion of simply bumping the threshold
limit for POST substantially to be a good idea for a first step. Maybe 1MB
instead of 1KB?

The threshold isn't used for PUT at all, but the header is currently inserted
at once even for tiny PUTs. I think we should consider using the threshold for
PUT as well.

Received on 2017-07-07