On Nov 30, 2003, at 1:15 PM, Hollis Blanchard wrote:In particular PATH_INFO seems to have been munged; I would have expected it to be
/View/2003/11/30/kitties.jpg
because after all the real URL is "/cgi-bin/wkcgi/View/2003/11/30/kitties.jpg" and wkcgi is the CGI script.
a) is this bug with PATH_INFO?
b) is there a proper way to get the info I want? Yes, I can os.path.split(request.uri())[1:], but it seems like this should be much easier.
c) doesn't anybody use PATH_INFO with WebKit??
Try extraURLPath(), it gives you everything after the servlet. You have to turn it on with a setting in Application.config.
I finally got around to trying this.
class Browse(SitePage):
def writeContent(self):
self.writeln("<pre>")
self.writeln("extraURLPath: %s" % self.request().extraURLPath())
self.writeln("</pre>")The URL "http://host/Browse/asdf/qwerty/" yields "/" as extraURLPath(). So does the URL "http://host/Browse" for that matter...
I'm using Apache mod_rewrite to expand that URL to "http://host/cgi-bin/wkcgi/Browse/...", if it matters.
-Hollis
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
