title: How do you get default headers in a urllib2 Request?
body: <p>I have a Python web client that uses urllib2.  It is easy enough to add HTTP headers to my outgoing requests. I just create a dictionary of the headers I want to add, and pass it to the Request initializer.</p>
  
  <p>However, other "standard" HTTP headers get added to the request as well as the custom ones I explicitly add.  When I sniff the request using Wireshark, I see headers besides the ones I add myself.  My question is how do a I get access to these headers?  I want to log every request (including the <em>full</em> set of HTTP headers), and can't figure out how.</p>
  
  <p>any pointers?</p>
  
  <p>in a nutshell:  How do I get all the outgoing headers from an HTTP request created by urllib2?</p>