localhost, ?!

Fabio Z Tessitore fabioztessitore at libero.it
Tue Aug 28 20:45:12 CEST 2007


Il Tue, 28 Aug 2007 18:27:31 +0200, Boris Ozegovic ha scritto:

> 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?  :-/

I think to have http://localhost working you need a web server (like 
apache). maybe you have it at your home.

bye
Fabio



More information about the Python-list mailing list