On Mon, 05 Mar 2007 09:02:44 +0000, Duncan Booth wrote: > Try running it interactively and looking at the data you receive: > >>>> conn = HTTPConnection('xml.showmyip.com') >>>> conn.request('GET', '/') > >>>> resp = conn.getresponse() >>>> print resp > <httplib.HTTPResponse instance at 0x00C58350> >>>> data = resp.read() >>>> print data > <html><head><title>Object moved</title></head><body> > > <h2>Object moved to <a href="http://www.showmyip.com/xml/">here</a>. > </h2> > > </body></html>
Ah! That's the clue I needed -- thanks. > If you try connecting to 'www.showmyip.com' and requesting '/xml/' it > should work. Thank you muchly! That seems to do the trick. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list