[Xitami] Re: HTTP_REFERER

samnbotskull xitami@lists.xitami.org
Tue, 18 Nov 2003 00:36:00 -0500


Thanks Marc, I got as far in my testing but it still isn't a perfect
solution.

I have a page http://localhost/index.cgi?page=map

>From that page, I click
http://localhost/index.cgi?page=map&action=travel&map=1&cor=1,4

My resulting $ENV hash produces

QUERY_STRING => page=map&action=travel&map=1&cor=?286,265
HTTP_REFERER => http://localhost/index.cgi

When what I really want is http://localhost/index.cgi?page=map

Now I can easily parse the string in Perl, but that's not the issue.
Eventually I want to run these scripts on a non-Xitami server and I want to
do it "the right way". I've used Apache in the past and HTTP_REFERER would
give me what I am here looking for. Is there any way that Xitami could be
configured such that in this example HTTP_REFERER would include the
referring URL and the referring URL's query string (And not the current
request's query string)?

Thanks!
-Samn