При вызове метода urlopen ругается на авторизацию proxy:
Traceback (most recent call last):Не знаю, в каком направлении даже думать. Каким образом можно авторизоваться?
File “C:\Temp\test.py”, line 16, in <module>
f = urllib2.urlopen(req)
File “C:\Python25\lib\urllib2.py”, line 121, in urlopen
return _opener.open(url, data)
File “C:\Python25\lib\urllib2.py”, line 380, in open
response = meth(req, response)
File “C:\Python25\lib\urllib2.py”, line 491, in http_response
‘http’, request, response, code, msg, hdrs)
File “C:\Python25\lib\urllib2.py”, line 418, in error
return self._call_chain(*args)
File “C:\Python25\lib\urllib2.py”, line 353, in _call_chain
result = func(*args)
File “C:\Python25\lib\urllib2.py”, line 499, 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. )