title: How to get HTTP return code from python urllib's urlopen?
body: <p>I have the following code:</p>
  
  <pre><code>f = urllib.urlopen(url)
  html = f.read()
  </code></pre>
  
  <p>I would like to know the HTTP status code (HTTP 200, 404 etc) that comes from opening the url above.</p>
  
  <p>Anybody knows how it can be done?</p>
  
  <p>P.S. 
  I use python 2.5.</p>
  
  <p>Thanks!!!</p>