title: Python-HTTP Version Not Supported
body: <p>This is my first question on stackoverflow. im using it since 3 years for checking my errors and thankfully never neded to ask a question.</p>
  
  <p>Im new to python. Im getting the error mentioned in the title when im requesting for a webpage.</p>
  
  <blockquote>
    <p>Python-HTTP Version Not Supported</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>from urllib2 import Request, urlopen, URLError
  req = Request(url)
  try:
      response = urlopen(req)
  except URLError as e:
      if hasattr(e, 'reason'):
          print 'We failed to reach a server.'
          print 'Reason: ', e.reason
      elif hasattr(e, 'code'):
          print 'The server couldn\'t fulfill the request.'
          print 'Error code: ', e.code
      else:
          print 'fine'
  </code></pre>