小编Anj*_*esh的帖子

如何使用curl来比较启用了deflate的页面大小,而不使用它

mod_deflate启用了apache .我想找出mod_deflate启用和不启用页面的大小,并比较大小的性能.在curl中,我似乎要求服务器使用--compressed和发送正常的gzip压缩内容,但似乎无法找到该页面的大小.知道怎么做吗?

curl --head http://site

HTTP/1.1 200 OK
Date: Wed, 08 Feb 2012 08:48:04 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.12
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: PHPSESSID=ce39b051a9cd493cbe4a86056e11d61f; path=/
Vary: Accept-Encoding
Content-Type: text/html
Run Code Online (Sandbox Code Playgroud)

curl --head --compressed http://site

HTTP/1.1 200 OK
Date: Wed, 08 Feb 2012 08:48:19 GMT
Server: Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.12
Expires: Thu, 19 …
Run Code Online (Sandbox Code Playgroud)

size curl gzip

35
推荐指数
2
解决办法
2万
查看次数

标签 统计

curl ×1

gzip ×1

size ×1