Code: Alles auswählen
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
print urllib.urlopen("http://www.debian.org/security/dsa").read()
File "/scripts/updates.py", line 75, in getUpdateDescriptions
print urllib.urlopen("http://www.debian.org/security/dsa").read()
File "/usr/lib/python2.5/urllib.py", line 82, in urlopen
return opener.open(url)
File "/usr/lib/python2.5/urllib.py", line 190, in open
return getattr(self, name)(url)
File "/usr/lib/python2.5/urllib.py", line 325, in open_http
h.endheaders()
File "/usr/lib/python2.5/httplib.py", line 860, in endheaders
self._send_output()
File "/usr/lib/python2.5/httplib.py", line 732, in _send_output
self.send(msg)
File "/usr/lib/python2.5/httplib.py", line 699, in send
self.connect()
File "/usr/lib/python2.5/httplib.py", line 683, in connect
raise socket.error, msg