• Bug#265128: [Polipo-users] [[email protected]: Bug#265128: "502 Couldn't

    From J.P. Larocque@1:229/2 to Tom Huckstep on Thu Aug 12 12:00:17 2004
    From: [email protected]

    On Thu, Aug 12, 2004 at 09:15:36AM +0100, Tom Huckstep wrote:
    A Debian bug report:
    Subject: Bug#265128: "502 Couldn't parse server headers" on certain web site

    Package: polipo
    Version: 0.9.5-1
    Severity: normal

    On http://linux.bkbits.net:8080/linux-2.5, I get:

    The proxy on juist:8123 encountered the following error while fetching http://linux.bkbits.net:8080/linux-2.5:
    502 Couldn't parse server headers

    Without the proxy, the browser doesn't have any problems to display
    the site.

    I occasionally see this with web sites. In this case, the server is
    including a date all by itself as the second line of the response:

    $ echo -ne 'GET /linux-2.5 HTTP/1.0\r\nAccept: */*\r\nHost: linux.bkbits.net:8080\r\n\r\n' | nc -v linux.bkbits.net 8080
    DNS fwd/rev mismatch: linux.bkbits.net != hostme.bkbits.net
    linux.bkbits.net [192.132.92.3] 8080 (webcache) open
    HTTP/1.0 200 OK
    Thu, 12 Aug 2004 09:26:19 GMT
    Server: bkhttp/0.4
    Content-Type: text/html
    Last-Modified: Thu, 12 Aug 2004 09:26:19 GMT
    Expires: Thu, 12 Aug 2004 09:27:19 GMT

    [snip]

    I don't see anything in
    http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html that would
    permit that.

    Most WWW software, including Galeon, Squid, and Google, seems to be surprisingly tolerant of such random HTTP violations. I personally
    don't think Polipo should work around problems that should be
    corrected on the web server.

    --
    J.P. Larocque is <[email protected]> and <[email protected]>
    Encrypt & sign your e-mail; 0xF61D2E61; http://ely.ath.cx/~piranha/pgp


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)