On Monday, Dec 1, 2003, at 10:23 US/Central, Ian Bicking wrote:
> 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
>> because after all the real URL is
>> "/cgi-bin/wkcgi/View/2003/11/30/kitties.jpg" and wkcgi is the CGI
>> 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.
self.writeln("extraURLPath: %s" % self.request().extraURLPath())
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.