title: Python urllib2 Response header
body: <p>I'm trying to extract the response header of a URL request. When I use firebug to analyze the response output of a URL request, it returns:</p>
  
  <pre><code>Content-Type text/html
  </code></pre>
  
  <p>However when I use the python code:</p>
  
  <pre><code>urllib2.urlopen(URL).info()
  </code></pre>
  
  <p>the resulting output returns:</p>
  
  <pre><code>Content-Type: video/x-flv
  </code></pre>
  
  <p>I am new to python, and to web programming in general; any helpful insight is much appreciated. Also, if more info is needed please let me know.</p>
  
  <p>Thanks in advance for reading this post</p>