Proxy Authentication Error In Urllib2 (python 2.7)
[Windows 7 64 bit; Python 2.7] If I try to use Urllib2, I get this error Traceback (most recent call last): File 'C:\Users\cYanide\Documents\Python Challenge\1\1.py', line 7, in
Solution 1:
Your program should see the environment variables which are set in Windows. So have these two environment variables in your Windows.
HTTP_PROXY = http://username:password@proxyserver.domain.com
HTTPS_PROXY = https://username:password@proxyserver.domain.com
And go ahead with executing your script. It should pick up the proper authenticators and proceed with the connection.
Post a Comment for "Proxy Authentication Error In Urllib2 (python 2.7)"