title: urllib2 failing with https websites
body: <p>Using urllib2 and trying to get an https page, it keeps failing with</p>
  
  <pre><code>Invalid url, unable to resolve
  </code></pre>
  
  <p>The url is 
  <a href="https://www.domainsbyproxy.com/default.aspx" rel="nofollow">https://www.domainsbyproxy.com/default.aspx</a>
  but I have this happening on multiple https sites.</p>
  
  <p>I am using python 2.7, and below is the code I am using to setup the connection</p>
  
  <pre><code>opener = urllib2.OpenerDirector()
  opener.add_handler(urllib2.HTTPHandler())
  opener.add_handler(urllib2.HTTPDefaultErrorHandler())
  opener.addheaders = [('Accept-encoding', 'gzip')]
  fetch_timeout = 12
  response = opener.open(url, None, fetch_timeout)
  </code></pre>
  
  <p>The reason I am setting handlers manually is because I don't want redirects handled (which works fine). The above works fine for http requests, however https - fails.</p>
  
  <p>Any clues?</p>