[Zope-Moz] ZServer breakage wrt HTTP - 2.1.3

Martijn Pieters mj@digicool.com
Fri, 11 Feb 2000 13:01:18 -0500


From: Shalabh Chaturvedi [mailto:shalabh@pspl.co.in]
> From the rfc #1945 it appears that the following kind of 
> request is _not_ valid
> for webservers:
> 
> GET http://localhost:8080/ HTTP/1.0
> 
> For webservers only an 'abs_path' should be specified. 
> abs_path = "/" rel_path.
> So only requests like the following are valid:
> 
> GET / HTTP/1.0
> GET /abc HTTP/1.0
> GET /abc/xyz HTTP/1.0
> 
> Hence there is nothing wrong with ZServer.
> 
> The surprizing thing is that apache doesn't mind it. All of 
> the following work
> :
> 
> GET / HTTP/1.0
> GET http://localhost/ HTTP/1.0
> GET http://gibberish/ HTTP/1.0

To echo to everyone what Shalabh and I just discussed on ICQ:

This is extra behaviour from the proxy server support built into many of
today's web servers. They support full URLs because that is what a proxy
server request needs in order to work. The protocol, server and port
information is usually discarded after URL parsing.

ZServer however, does not double as a proxy server, and as such only
follows the HTTP RFC. All current HTTP compliant web browsers and proxy
servers do not send the protocol, server and port parts of a URL to web
servers, only to (other) proxy servers.

-- 
Martijn Pieters, Software Engineer 
| Digital Creations http://www.digicool.com 
| Creators of Zope      http://www.zope.org 
| mailto:mj@digicool.com       ICQ: 4532236
| PGP:
http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 
-------------------------------------------