title: Get headers sent in urllib2 http request
body: <p>I know how to get the headers RECEIVED</p>
  
  <pre><code>resp = urllib2.urlopen('http://www.google.com')
  print resp.info()
  </code></pre>
  
  <p>But how do you access the headers SENT to 'http://www.google.com' ?</p>
  
  <p>I usually use wireshark to analyze and see what is actually being sent, but I'd like to have access to this information in my script.</p>