Re: [squid-users] File Upload with curl - erroe 417 Expectation Failed

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 31 Oct 2012 12:52:24 +1300

On 31.10.2012 12:05, Markus Moeller wrote:
> Hi,
>
> I try to upload a file with curl which works fine without squid. But
> when I try the upload with squid I get an error 417 Expectation
> Failed. I use squid 3.1.16.
>
> What does that mean ?

As mentioned in the error page text it means curl is using the HTTP
feature "Expect:" which requires minimum HTTP/1.1 for the transport
version, but Squid-3.1 uses HTTP/1.0 transport version.

>> POST http://www.csm-testcenter.org/test HTTP/1.1
>> Expect: 100-continue

> < HTTP/1.0 417 Expectation Failed
> < Server: squid/3.1.16
...
>
> <p>Some possible problems are:</p>
> <ul>
...
> <li><p>HTTP/1.1 <q>Expect:</q> feature is being asked from an
> HTTP/1.0 software.</p></li>

Please upgrade to Squid-3.2 which uses HTTP/1.1 transport version.

Amos
Received on Tue Oct 30 2012 - 23:52:35 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 31 2012 - 12:00:05 MDT