[Zope] ZServer breakage wrt HTTP - 2.1.3
Brett Morgan
brett@pulse.itd.uts.edu.au
Sat, 12 Feb 2000 02:04:38 +1100
I am playing with ZopeStudio on a stoke Zope 2.1.3 build (wo_pcgi)
running ZServer on port 8080. It don't work. I uncomented the
debugging dump at the top of the zopestudio.js file in the chrome and
noticed that the server was just sending out 25 pings for the two rdf
files it wants. I retreived them without a hitch from within netscape
4, but mozilla can't even get the main page from zope.
So here's a theory:
ZServer can't grok http 1.0 compliant request thus:
[brett@localhost brett]$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET http://localhost:8080/ HTTP/1.0
host: localhost:8080
HTTP/1.0 404 Not Found
Server: Medusa/1.13
Content-Type: text/html
Content-Length: 134
Date: Fri, 11 Feb 2000 15:04:23 GMT
<head>
<title>Error response</title>
</head>
<body>
<h1>Error response</h1>
<p>Error code 404.
<p>Message: Not Found.
</body>
Connection closed by foreign host.
But lives fine with this slacker http:
[brett@localhost brett]$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /
HTTP/None 200 OK
Server: Zope/Zope 2.1.3 (source release, python 1.5.2, linux2)
ZServer/1.1b1
Date: Fri, 11 Feb 2000 15:05:25 GMT
Content-Length: 1290
Content-Type: text/html
<HTML>
<HEAD>
<TITLE>Zope</TITLE>
<base href="http://localhost:8080/">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
...
which is not actually correct since I pinged it in http 0.9. No
matter. Everyone of note communicates in HTTP/1.0ish.
But Mozilla the standards compliant client that it is, breaks
ZServer. I hope this helps the guys trying to figure out why
ZopeStudio is breaking :)
brett
--
email: Brett.Morgan@uts.edu.au
phone: +61-2-9514-2091
The rhino is a homely beast,
For human eyes he's not a feast.
Farewell, farewell, you old rhinoceros,
I'll stare at something less prepoceros.
-- Odgen Nash (1902-1971)