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

From: Riccardo Castellani <r.castellani_at_usl6.toscana.it>
Date: Fri, 19 Feb 2010 14:57:18 +0100

I ask if Squid previous versions ignored Expect header forwarding request to
server.
But now why Squid code (2.7 version) detects this header and it handles it
as error ? Why has this Squid behaviour been modified ?

-----Messaggio originale-----
Da: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Inviato: Friday, February 19, 2010 12:14 PM
A: squid-users_at_squid-cache.org
Oggetto: Re: [squid-users] HTTP/1.0 417 Expectation failed

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 - 13:57:19 MST

This archive was generated by hypermail 2.2.0 : Sat Feb 20 2010 - 12:00:05 MST