title: unable to access website with urllib and proxy
body: <p>I've opened a ssh tunnel with <code>ssh -D localhost:5678 me@server.com</code> and I want to use it in my python3 application.</p>
  
  <pre><code>#!/usr/bin/python3.1
  # -*- coding:Utf-8 -*-
  
  import urllib.request
  
  proxyhand = urllib.request.ProxyHandler({"socks" : "http://localhost:5678"})
  opener = urllib.request.build_opener(proxyhand)
  page = opener.open("http://www.mysite.com")
  </code></pre>
  
  <p>Where mysite.com can only be accessed from the network on server.com (that's why I use a ssh tunnel).</p>
  
  <p>It works to access any other website with no limitations but for mysite.com I have a connection timed out error. The tunnel works as I can access mysite.com using firefox configured <a href="http://wiki.freaks-unidos.net/weblogs/azul/firefox-ssh-tunnel" rel="nofollow">as explained here</a>.</p>
  
  <p>Thank you</p>