localhost, ?!

Boris Ozegovic koje_je_ono_bilo_pitanje at bla.bla
Tue Aug 28 12:27:31 EDT 2007


Three machines, one at my home, other two at my job, in every machine there
is Win XP SP2 and Python 2.5

At home:
urllib2.urlopen("http://localhost"), everything is ok

At job:
urllib2.urlopen("http://localhost")
raise BadStatusLine(line), after half a minute.

urllib2.urlopen("http://127.0.0.1")
HTTP Error 503: Service Unavailable, immediately.

Anybody have slightest clue wthat is going on?  :-/

If I use urllib, then localhost works on every machine, and urllib2 works
on every machine when retreiving URLs outside localhost.



More information about the Python-list mailing list