Re: [squid-users] HTTP/1.0 417 Expectation failed

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 20 Feb 2010 00:14:00 +1300

Riccardo Castellani wrote:
> I'm using Squid 2.7 STABLE3 and I noted my software sends http Request =
> where there is written:
>
> POST http://www.inps.it/...
> ...
> Expect: 100-Continue
>
>
> Squid answers saying :
>
>
> HTTP/1.0 417 Expectation failed
> ...
> X-Squid-Error: ERR_INVALID_REQ 0
>
>
> Squid uses Expect request ?!

No. Squid is HTTP/1.0 Expect does not exist in that protocol.

> How Can I solve it ?

Write/Use software that knows how to handle Expect response errors properly.

When receiving 417 it should be re-trying the POST without the expect
header, or the delays Expect adds to the system.

Squid other than 2.7 will not produce this error. They will just die in
unexpected ways if the 100-continue your software asked for actually
comes back.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE24
   Current Beta Squid 3.1.0.16
Received on Fri Feb 19 2010 - 11:14:09 MST

This archive was generated by hypermail 2.2.0 : Mon Feb 22 2010 - 12:00:05 MST