[squid-users] help with squid error

From: Gavin McCullagh <gavin.mccullagh_at_gcd.ie>
Date: Mon, 12 Apr 2010 12:05:54 +0100

Hi,

Could someone perhaps give me a clue as to the reason for the following
"417 Expectation Failed" error I'm getting back from squid. This is an
online video system with a flash player and it would appear to be flash
making a direct HTTP connection through the proxy.

Request packet fragment and wiresharked response are below.

Many thanks in advance,
Gavin

The request is (sorry it's not in a better format):

0000 00 0d 56 5e b5 00 00 1a a0 8c 7d 15 08 00 45 00 ..V^......}...E.
0010 01 4b 0d 16 40 00 40 06 c2 1e ac 10 01 03 ac 10 .K..@.@.........
0020 11 55 8b 45 1f 90 4b c1 5e 20 1d d6 8b 1e 80 18 .U.E..K.^ ......
0030 00 5c 6b b6 00 00 01 01 08 0a 00 16 53 0b 26 cb .\k.........S.&.
0040 55 7a 50 4f 53 54 20 68 74 74 70 3a 2f 2f 38 39 UzPOST http://89
0050 2e 32 30 37 2e 35 36 2e 31 30 37 2f 73 65 6e 64 .207.56.107/send
0060 2f 65 70 31 6d 62 52 51 75 36 48 58 57 56 59 7a /ep1mbRQu6HXWVYz
0070 49 2f 31 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f I/1 HTTP/1.1..Ho
0080 73 74 3a 20 38 39 2e 32 30 37 2e 35 36 2e 31 30 st: 89.207.56.10
0090 37 0d 0a 41 63 63 65 70 74 3a 20 2a 2f 2a 0d 0a 7..Accept: */*..
00a0 50 72 6f 78 79 2d 43 6f 6e 6e 65 63 74 69 6f 6e Proxy-Connection
00b0 3a 20 4b 65 65 70 2d 41 6c 69 76 65 0d 0a 55 73 : Keep-Alive..Us
00c0 65 72 2d 41 67 65 6e 74 3a 20 53 68 6f 63 6b 77 er-Agent: Shockw
00d0 61 76 65 20 46 6c 61 73 68 0a 43 6f 6e 6e 65 63 ave Flash.Connec
00e0 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76 65 tion: Keep-Alive
00f0 0a 43 61 63 68 65 2d 43 6f 6e 74 72 6f 6c 3a 20 .Cache-Control:
0100 6e 6f 2d 63 61 63 68 65 0d 0a 43 6f 6e 74 65 6e no-cache..Conten
0110 74 2d 54 79 70 65 3a 20 61 70 70 6c 69 63 61 74 t-Type: applicat
0120 69 6f 6e 2f 78 2d 66 63 73 0d 0a 43 6f 6e 74 65 ion/x-fcs..Conte
0130 6e 74 2d 4c 65 6e 67 74 68 3a 20 31 35 33 37 0d nt-Length: 1537.
0140 0a 45 78 70 65 63 74 3a 20 31 30 30 2d 63 6f 6e .Expect: 100-con
0150 74 69 6e 75 65 0d 0a 0d 0a tinue....

The response:

Hypertext Transfer Protocol
    HTTP/1.0 417 Expectation failed\r\n
        [Expert Info (Chat/Sequence): HTTP/1.0 417 Expectation failed\r\n]
            [Message: HTTP/1.0 417 Expectation failed\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Version: HTTP/1.0
        Response Code: 417
    Server: squid/2.7.STABLE3\r\n
    Date: Mon, 12 Apr 2010 10:16:26 GMT\r\n
    Content-Type: text/html\r\n
    Content-Length: 1451\r\n
        [Content length: 1451]
    Expires: Mon, 12 Apr 2010 10:16:26 GMT\r\n
    X-Squid-Error: ERR_INVALID_REQ 0\r\n
    X-Cache: MISS from muinnamuice.staff.gcd.ie\r\n
    X-Cache-Lookup: NONE from muinnamuice.staff.gcd.ie:8080\r\n
    Via: 1.0 muinnamuice.staff.gcd.ie:8080 (squid/2.7.STABLE3)\r\n
    Connection: close\r\n
    \r\n
Line-based text data: text/html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n
    <HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">\n
    <TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n
    <STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>\n
    </HEAD><BODY>\n
    <H1>ERROR</H1>\n
    <H2>The requested URL could not be retrieved</H2>\n
    <HR noshade size="1px">\n
    <P>\n
    While trying to process the request:\n
    <PRE>\n
    POST /send/ep1mbRQu6HXWVYzI/1 HTTP/1.1\n
    Host: 89.207.56.107\r\n
    Accept: */*\r\n
    Proxy-Connection: Keep-Alive\r\n
    User-Agent: Shockwave Flash\r\n
    Connection: Keep-Alive\r\n
    Cache-Control: no-cache\r\n
    Content-Type: application/x-fcs\r\n
    Content-Length: 1537\r\n
    Expect: 100-continue\r\n
    \n
    </PRE>\n
    <P>\n
    The following error was encountered:\n
    <UL>\n
    <LI>\n
    <STRONG>\n
    Invalid Request\n
    </STRONG>\n
    </UL>\n
    \n
    <P>\n
    Some aspect of the HTTP Request is invalid. Possible problems:\n
    <UL>\n
    <LI>Missing or unknown request method\n
    <LI>Missing URL\n
    <LI>Missing HTTP Identifier (HTTP/1.0)\n
    <LI>Request is too large\n
    <LI>Content-Length missing for POST or PUT requests\n
    <LI>Illegal character in hostname; underscores are not allowed\n
    </UL>\n
    <P>Your cache administrator is <A HREF="mailto:helpdesk_at_gcd.ie">helpdesk_at_gcd.ie</A>. \n
    \n
    <BR clear="all">\n
    <HR noshade size="1px">\n
    <ADDRESS>\n
    Generated Mon, 12 Apr 2010 10:16:26 GMT by muinnamuice.staff.gcd.ie (squid/2.7.STABLE3)\n
    </ADDRESS>\n
    </BODY></HTML>\n
Received on Mon Apr 12 2010 - 11:05:58 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 12 2010 - 12:00:04 MDT