Re: [PATCH/RFC] Adding Expect: 100-continue if post size is unknown
Date: Tue, 1 Dec 2009 15:00:26 +0200 (EET)
On Tue, 1 Dec 2009, Daniel Stenberg wrote:
> I think I agree with you that appending the header is a good idea for the case
> when we don't know the size at all, but we must make a better distinction
> between unknown and zero since the suggested patch will lead to badness
> otherwise (visualized by the failure of test 175 to start with).
> We use the specific case size 0 in a few circumstances for the first request
> in a multi-pass authentication (when we know the request won't be accepted but
> we expect a challenge response) and when we send zero bytes there's really no
> point in an Expect: header.
That's what I expected. Would this be a better solution, by setting it to
-1 if it's unknown? (This is completely untested, but it's easier to show
what I'm trying to say using a patch instead of trying to describe it
- TEXT/x-diff attachment: curl-expect-if-size-unknown.patch