Re: [squid-users] 417 Expectation Failed

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 27 Mar 2012 15:17:35 +1300

On 27.03.2012 14:47, chaos wrote:
> Hello!
> Os Centos 5.8
> I have problem with new squid-3.1.19-1.el5.
> I use curl for my website;
> I use command:
> curl -D header.txt -x MYIP:PORT -U "login:password" -d "POSTREQUEST"
> http://mysite/scrip.php
> But when i updated squid i got error in header.txt:
> HTTP/1.0 417 Expectation Failed
> Server: squid/3.1.19
> Mime-Version: 1.0
> Date: Tue, 27 Mar 2012 01:28:19 GMT
> Content-Type: text/html
> Content-Length: 4220
> X-Squid-Error: ERR_INVALID_REQ 0
> Vary: Accept-Language
> Content-Language: en
> X-Cache: MISS from server.domain.com
> X-Cache-Lookup: NONE from server.domain.com:63778
> Connection: close
>
> I get this error when POSTREQUEST is BIG(have big length) ONLY!!!
> I have not this problem with old version of squid.
>
> P.S. Sorry for my english

Squid-3.1 "understands" HTTP/1.1, even if it cannot supply all the
features. curl is sending an HTTP/1.1-only Expect: header whose
requirements Squid-3.1 cannot supply.

This may help you.
  http://chrismckee.co.uk/curl-http-417-expectation-failed/

Amos
Received on Tue Mar 27 2012 - 02:17:39 MDT

This archive was generated by hypermail 2.2.0 : Tue Mar 27 2012 - 12:00:03 MDT