curl-users
SV: problem with HTTPS post of file: "Expectation failed"
Date: Mon, 28 Nov 2005 11:16:28 +0100
I would look into using Apache instead of lighthttpd or perhaps thttpd which
is also small and fast. I have worked with boa as well which I can
recommend. If you are using lighthttpd for ruby on rails then switching to
Apache to get proper implementation of the protocols might be your best
solution.
_____
Från: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] För Chris Dawson
Skickat: den 25 november 2005 20:41
Till: the curl tool
Ämne: Re: problem with HTTPS post of file: "Expectation failed"
Once I used the -H switch, everything works perfectly. Thanks so much; what
a great tool!
Chris
On 11/25/05, Chris Dawson <xrdawson_at_gmail.com> wrote:
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 < <mailto:daniel_at_haxx.se> 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.htmlReceived on 2005-11-28