title: How to capture all the HTTP packets using tcpdump
body: <p>I want to run <code>tcpdump</code> with some parameters (still don't know what to use), then load the stackoverflow.com page. </p>
  
  <p>Output should be the HTTP communication. Later, I want to use it as a shell script, so whenever I want to check the HTTP communication of a site site.com, I just can run <code>script.sh site.com</code>.</p>
  
  <p>The HTTP communication should be simple enough. Like this:</p>
  
  <pre><code>GET /questions/9241391/how-to-capture-all-the-http-communication-data-using-tcp-dump
  Host: stackoverflow.com
  ... 
  ...
  
  HTTP/1.1 200 OK
  Cache-Control: public, max-age=60
  Content-Length: 35061
  Content-Type: text/html; charset=utf-8
  Expires: Sat, 11 Feb 2012 15:36:46 GMT
  Last-Modified: Sat, 11 Feb 2012 15:35:46 GMT
  Vary: *
  Date: Sat, 11 Feb 2012 15:35:45 GMT
  
  
  ....
  decoded deflated data
  ....
  </code></pre>
  
  <p>Now, which options should I use with <code>tcpdump</code> to capture it?</p>