cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: problem with HTTPS post of file: "Expectation failed"

From: Chris Dawson <xrdawson_at_gmail.com>
Date: Fri, 25 Nov 2005 11:37:45 -0800

This is definitely a bug in lighttpd. I have been doing some research, and
they respond with a 417 no matter what the request if it has the "Expect:
100-continue" header. Their rationale is that they are handling it
"correctly" by rejecting it, but I would disagree.

Thanks,
Chris

On 11/25/05, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 25 Nov 2005, Chris Dawson wrote:
>
> > I am getting closer. I think the issue is that lighttpd (the webserver
> I am
> > using) does not properly handle the "Expect: 100-continue" header. It
> > always rejects this header with a 417 "Expectation failed" error, so
> curl
> > gives up after this. Is there a way to tell curl to not be so "nice"
> and
> > send the request in full without going through the expect request?
>
> Disable the sending of that header with -H "Expect:".
>
> I can't but to think that this is a bug in lighttpd.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2005-11-25