Using an HTTP PROXY – Python

I familiar with the fact that I should set the HTTP_RPOXY environment variable to the proxy address. Generally urllib works fine, the problem is dealing with urllib2. >>> urllib2.urlopen("http://www.google.com").read() returns urllib2.URLError: <urlopen error [Errno 10061] No connection could be made because the target machine actively refused it> or urllib2.URLError: <urlopen error [Errno 11004] getaddrinfo failed> … Read more