urllib problem

Discussion in 'Python' started by C GIllespie, Jan 15, 2004.

  1. C GIllespie

    C GIllespie Guest

    Dear All,

    I'm having problems using the urllib module and was wondering if anyone
    could suggest a solution. The only thing I can thing of is that I'm using at
    university and my uni uses a compulsory proxy.

    I'm using the python 2.3.3 and have tried both windows and Linux
    environments. I've tried different urls as well.

    Here's the code and error message I get

    Thanks

    Colin

    import urllib
    usock=urllib.urlopen('http://slashdot.org/slashdot.rdf')

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/usr/lib/python2.3/urllib.py", line 76, in urlopen
    return opener.open(url)
    File "/usr/lib/python2.3/urllib.py", line 181, in open
    return getattr(self, name)(url)
    File "/usr/lib/python2.3/urllib.py", line 297, in open_http
    h.endheaders()
    File "/usr/lib/python2.3/httplib.py", line 712, in endheaders
    self._send_output()
    File "/usr/lib/python2.3/httplib.py", line 597, in _send_output
    self.send(msg)
    File "/usr/lib/python2.3/httplib.py", line 564, in send
    self.connect()
    File "/usr/lib/python2.3/httplib.py", line 548, in connect
    raise socket.error, msg
    IOError: [Errno socket error] (113, 'No route to host')
    C GIllespie, Jan 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bobbie
    Replies:
    2
    Views:
    722
    Jordan Krushen
    Jul 21, 2003
  2. ralobao

    Problem with urllib.urlretrieve

    ralobao, Jun 12, 2004, in forum: Python
    Replies:
    1
    Views:
    797
    fishboy
    Jun 12, 2004
  3. Volker M.

    Problem with urllib.py

    Volker M., Jul 22, 2004, in forum: Python
    Replies:
    3
    Views:
    386
    John J. Lee
    Jul 24, 2004
  4. Jonathan Gardner

    Asynchronous urllib (urllib+asyncore)?

    Jonathan Gardner, Feb 26, 2008, in forum: Python
    Replies:
    1
    Views:
    462
    Terry Jones
    Feb 27, 2008
  5. Chris McDonald
    Replies:
    0
    Views:
    275
    Chris McDonald
    Nov 1, 2010
Loading...

Share This Page