localhost, ?!

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Aug 28 21:36:15 CEST 2007


Boris Ozegovic wrote:

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

Looks like name resolving problems.
 
> urllib2.urlopen("http://127.0.0.1")
> HTTP Error 503: Service Unavailable, immediately.

Definitely a problem with the web server (503 means "service
unavailable").
 
> Anybody have slightest clue wthat is going on?  :-/

Try using wireshark or a similar tool to see what's going on on
protocol level.

Regards,


Björn

-- 
BOFH excuse #103:

operators on strike due to broken coffee machine




More information about the Python-list mailing list