[tbnl-devel] PATH_INFO

Edi Weitz edi at agharta.de
Fri Oct 7 09:19:01 UTC 2005


On Fri, 7 Oct 2005 11:04:26 +0200, Peter BARABAS <peter.barabas at gmail.com> wrote:

> I don't know if it makes sense, but I'd treat the prefix dispatch
> part as SCRIPT_NAME and everything after it as PATH_INFO. E.g. in
> http://www.something.net/authors/Kurt_Vonnegut "/authors/" would be
> the SCRIPT_NAME and "Kurt_Vonnegut" the PATH_INFO. Again, this might
> be non-sense.

Yes, that would make sense with prefix dispatchers but not with
arbitrary dispatchers.  What if the dispatcher dispatches depending on
the last three characters of the URI?  Or depending on the phase of
the moon?

I think what you want can be achieved if you, in your own dispatcher,
set AUX-REQUEST-VALUE to whatever information about the URI you want
to communicate to the handlers.  Only the dispatcher can know which
part of the URI is relevant to the handler and which isn't.

On a related note, I agree that SCRIPT-NAME might not be the best name
but at the moment it's at least well-defined.

Cheers,
Edi.



More information about the Tbnl-devel mailing list