[Xitami] Re: HTTP_REFERER
Brian {Hamilton Kelly}
xitami@lists.xitami.org
Tue, 18 Nov 2003 08:01:57 +0000 (GMT)
In message <002001c3ad95$d9e98cc0$6ba43b44@sthlke01.fl.comcast.net>
"samnbotskull" writes:
> 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
No you don't; the "page" is immutable: it is the document whose URI is
<http://localhost/index.cgi>. That is, and must, remain as the only
correct content for HTTP_REFERER.
> 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
Which is what I would expect.
> 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.
It did? I'm surprised; I cannot find any examples in any RFCs that
include anything after the path part of the URI.
Sorry I can't help you towards your goal; merely pointing out that your
goal might well not be attainable.
--
Brian {Hamilton Kelly} bhk@dsl.co.uk
"We can no longer stand apart from Europe if we would. Yet we are
untrained to mix with our neighbours, or even talk to them".
George Macaulay Trevelyan, 1919