RE: [Zope-dev] Zope as a proxy - cache server
From: Sin Hang Kin [mailto:kentsin@macau.ctm.net]
Can I use zope as a proxy / cache server? Does it require to make changes on the zserver code or just zclient is enough?
ZServer will have to be changed to parse out and make available the protocol, host and port number parts of the request. Currently, ZServer adhers closely to the HTTP RFC by allowing only requests of the form '[METHOD] [/path] HTTP/[version]'. Proxy requests are of the form '[METHOD] [Full URL] HTTP/[version]', where [Full URL] is something like http://a.host.address/path. There may be other issues, this is one I know of. -- 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 -------------------------------------------
Currently, ZServer adhers closely to the HTTP RFC by allowing only requests of the form '[METHOD] [/path] HTTP/[version]'. Proxy requests are of the form '[METHOD] [Full URL] HTTP/[version]', where [Full URL] is something like http://a.host.address/path.
Oops. The current HTTP protocol (1.1) specifically states that a server MUST be able to accept a fully qualified URL (this is in an attempt to get clients across the internet to STOP sending just the path in the request). --sam
participants (2)
-
Martijn Pieters -
Sam Gendler