473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

localhost, ?!

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.
Aug 28 '07 #1
5 2328
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
Aug 28 '07 #2
Fabio Z Tessitore wrote:
I think to have http://localhost working you need a web server (like
apache). maybe you have it at your home.
I do have Apache. You can see that urllib, older module, works correctly.
Aug 28 '07 #3
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

Aug 28 '07 #4
Bjoern Schliessmann wrote:
Definitely a problem with the web server (503 means "service
unavailable").
I did try on two servers, Apache and simple python server. There was
identically error on both servers.
>Anybody have slightest clue wthat is going on? :-/

Try using wireshark or a similar tool to see what's going on on
protocol level.
Ok.
Aug 28 '07 #5
Boris Ozegovic wrote:
Bjoern Schliessmann wrote:
>Definitely a problem with the web server (503 means "service
unavailable").

I did try on two servers, Apache and simple python server. There
was identically error on both servers.
Also try to look at the logs, you're bound find something there too.
>Try using wireshark or a similar tool to see what's going on on
protocol level.

Ok.
And don't forget to report back :)

Regards,
Björn

--
BOFH excuse #307:

emissions from GSM-phones

Aug 28 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Mateer | last post by:
Hi Why does the following code allow me to keep the same session when in the same sub domain (ie admin.localhost), yet not when I goto another related domain eg main.localhost? I would like...
2
by: Martin Fuzzey | last post by:
I am using xmlrpclib (based on httplib) in Python 2.3 on Mandrake Linux. When my client attempts to connect to a server using a "http://localhost:port" style URL there is a long delay before the...
2
by: Asad Khan | last post by:
Hello, I was using MySQL till a few days ago just fine. Now everytime I try to run it using mysql.exe, I get the following error: "can't connect to mysql server 'localhost' (10061)" What...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
5
by: KenLee | last post by:
help: how can I change from "//localhost:numbers/" to just "//localhost/"? I can see the web pages using "//localhost:numbers/" instead of ""//localhost/". I use asp.net 2.o. and windows 2000....
7
by: rajbala.3399 | last post by:
Hi , I want to download sql in my linux system........... # rpm -ivh MySQL-server-5.0.24a-0.glibc23.i386.rpm MySQL-cl ient-5.0.24a-0.glibc23.i386.rpm Preparing... ...
12
by: John Kotuby | last post by:
Hi all, Maybe this is a simple problem found in ASP.NET 2.0 course 101, but I must have missed it. When I create a page in Visual Web Developer and use URLs like "/images/picture.gif " or a link...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
1
by: maflatoun | last post by:
Hi all, I've been doing ASP.NET C# for 4 years now and that's around the same # of years I've been away from PHP. But now I'm looking at this PHP position that looks really interesting to me....
3
by: teo | last post by:
I'm developing a software (a WinApp, not a WebApp) to retrieve Date & Time from a web server, but firstly I need to to test it on my PC, with "localhost" I'm using the VB Net language (below...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.