On Aug 12, 2010, at 10:53 AM, mdipierro wrote: > The chunked issue needs to be investigated. Are you using rocket or > apache? I also noticed rocket responds always with http/1.1 which > (allows the server to decide on the option of chunked encoding and it > may decide based on the length of content). The problem is that ab - I > think - asks for 1.0 since according to the docs does not support 1.x > fully.
curl -i http://web2py.com/examples/form_examples/form You'd know better than I. According to the headers, Apache and http 1.1: HTTP/1.1 200 OK Date: Thu, 12 Aug 2010 17:00:36 GMT Server: Apache/2.2.8 (Ubuntu) mod_wsgi/3.2-BRANCH Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g Expires: Thu, 12 Aug 2010 17:00:36 GMT^M Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Set-Cookie: session_id_examples=70-0-249-65-52b1ec97-d08b-435e-a1b7-ddc1f87e0ddd; Path=/ Content-Length: 24163 Content-Type: text/html; charset=utf-8 HTTP/1.1 200 OK Date: Thu, 12 Aug 2010 17:00:39 GMT Server: Apache/2.2.8 (Ubuntu) mod_wsgi/3.2-BRANCH Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g Expires: Thu, 12 Aug 2010 17:00:39 GMT Pragma: no-cache Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Set-Cookie: session_id_examples=70-0-249-65-3139077f-0ef8-4e39-8ddf-6bc40690414f; Path=/ Transfer-Encoding: chunked Content-Type: text/html; charset=utf-8 > > Massimo > > On Aug 12, 12:08 pm, Jonathan Lundell <[email protected]> wrote: >> On Aug 12, 2010, at 10:00 AM, mdipierro wrote: >> >>> You are the man. >> >>> For the page I am considering the fail requests are not a real failure >>> but declare a content-length of 19383 (wrong) instead of 19384 >>> (correct). Let's continue investigate... >> >> I'm seeing two variations (using curl -i). >> >> One is harmless: >> >> <div>datetime.datetime(2010, 8, 12, 18, 0, 36, 68094)</div> >> >> vs >> >> <div>datetime.datetime(2010, 8, 12, 18, 3, 15, 325125)</div> >> >> However, the other is odd: >> >> tmp $ grep -i Transfer-Encoding ? >> 2:Transfer-Encoding: chunked >> 4:Transfer-Encoding: chunked >> 5:Transfer-Encoding: chunked >> 6:Transfer-Encoding: chunked >> tmp $ grep -i Transfer-Length ? >> tmp $ grep -i Content-Length ? >> 1:Content-Length: 24163 >> 3:Content-Length: 24164 >> >> (filenames 1-6 are my curl -i captures) >> >> Apparently at random, I see chunked returns. >> >> My request is: curl -ihttp://web2py.com/examples/form_examples/form

