L'authentification du Proxy erreur python

Salut j'ai écrit quelques lignes de code. Mais j'ai l'impression de recevoir une erreur d'Authentification. Quelqu'un peut s'il vous plaît suggérer , que les informations d'identification sont étudiés pour python ici ?

Code:

import urllib2
response = urllib2.urlopen('http://google.com')
html = response.read()

Erreur

urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required

PS: je n'ai pas accès à IE -->paramètres Avancés ou regedit

Comme conseillé j'ai modifié le code :

import urllib2
proxy_support = urllib2.ProxyHandler({'http':r'http://usename:psw@IP:port'})
auth = urllib2.HTTPBasicAuthHandler()
opener = urllib2.build_opener(proxy_support, auth, urllib2.HTTPHandler)
urllib2.install_opener(opener)
response = urllib2.urlopen('http://google.com')
html = response.read()

J'ai aussi créé deux variables d'environnement :

HTTP_PROXY = http://username:password@proxyserver.domain.com
HTTPS_PROXY = https://username:password@proxyserver.domain.com

Mais encore obtenir l'erreur .

urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required

InformationsquelleAutor misguided | 2013-08-20