title: How to print wget output to a file
body: <p>I'm trying to print http headers to a text file. I tried :</p>
  
  <pre><code>wget -S --spider -O SESSIONS.txt 'mysite.com'
  wget -S --spider 'mysite.com'   &gt; SESSIONS.txt
  </code></pre>
  
  <p>In both cases SESSIONS.txt remains empty. why?</p>