title: How to use curl to compare the size of the page with deflate enabled and without using it
body: <p>I have apache with <code>mod_deflate</code> enabled. I would like to find out the size of the page with <code>mod_deflate</code> enabled and without, and compare how much performance is achieved in size. In curl, I seem to ask server for gzipped content using <code>--compressed</code> and to send the normal, but can't seem to find the size of that page. Any idea how to do that?</p>
  
  <p><code>curl --head http://site</code></p>
  
  <pre><code>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
  </code></pre>
  
  <p><code>curl --head --compressed http://site</code></p>
  
  <pre><code>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 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=513b8ac5818fd043471c8aac44355898; path=/
  Vary: Accept-Encoding
  Content-Encoding: gzip
  Content-Length: 20
  Content-Type: text/html
  </code></pre>