Bei folgendem Code erhalte ich nachfolgende Fehlermeldung:
Code: Alles auswählen
import urllib2
f = urllib2.urlopen('http://www.python.org/')
print f.read()
Code: Alles auswählen
Traceback (most recent call last):
File "download.py", line 22, in ?
f = urllib2.urlopen('http://www.python.org/')
File "d:\python24\lib\urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "d:\python24\lib\urllib2.py", line 364, in open
response = meth(req, response)
File "d:\python24\lib\urllib2.py", line 471, in http_response
response = self.parent.error(
File "d:\python24\lib\urllib2.py", line 402, in error
return self._call_chain(*args)
File "d:\python24\lib\urllib2.py", line 337, in _call_chain
result = func(*args)
File "d:\python24\lib\urllib2.py", line 480, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
Wie gebe ich den Proxy-Server zum Downloaden an, bzw. wie funktioniert es?
Edit (Leonidas): Code in Python-Tags gesetzt, Fehlermeldung in Code-Tags.