I installed apache 2.2.17 as a proxy server,and installed
mod_pagespeed module. I downloaded a html to test.
but result is not correct. testing command is:
curl -o /tmp/test.html -v
http://192.168.1.2/publicforum/content/free/1/2086886.shtml
-H "Host:
www.tianya.cn"
result is:
* About to connect() to 192.168.1.2 port 80
* Trying 192.168.1.2... connected
* Connected to 192.168.1.2 (192.168.1.2) port 80
> GET /publicforum/content/free/1/2086886.shtml HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Accept: */*
> Host:
www.tianya.cn
>
% Total % Received % Xferd Average Speed Time Time
Time Current
Dload Upload Total Spent
Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02
--:--:-- 0< HTTP/1.1 200 OK
< Date: Fri, 18 Feb 2011 08:16:33 GMT
< Server: Microsoft-IIS/6.0
< X-Powered-By:
ASP.NET
< Content-Type: text/html
< Cache-control: max-age=0, no-cache, no-store
< X-tianya: 1255507538
< Age: 0
< Via: Tianya Cache
< X-Cache: MISS115
< Via: 1.1
test.primenets.net
< X-Mod-Pagespeed: 0.9.14.6-0
< Vary: Accept-Encoding
< Connection: close
< Transfer-Encoding: chunked
100 121k 0 121k 0 0 27408 0 --:--:-- 0:00:04
--:--:-- 35155* Closing connection #0
I think that response should include Content-Length field, but testing
result does not include this field, but Transfer-Encoding field. I
want to know why. I read source code ,but can not find reason. please
help me, why such result!