sulfericacid has asked for the wisdom of the Perl Monks concerning the following question:
Just for the sake of it, I also used
My first idea was using $ENV{"HTTP_REFERER"}. I thought this worked at first but it turns out it only works if the page1.shtml is called directly. This is to say, if you are on www.mypage.com/page2.shtml and click a link to www.mypage.com/page1.shtml the CGI included on page1.shtml will say the referer was "www.mypage.com/page2.shtml" and NOT page1.shtml which it should!<!--#exec cgi="../cgi-bin/stats/downloads.pl"-->
I have used both the SSI and the exec cgi code and using HTTP_REFERER but it's absolutely not working. Can someone tell me how I can get the URL of the page that called it?
I could always pass param values of the URL to the script itself, that would work and I do realize that. The problem is this will be going on hundreds of pages and that's a lot of configuration time involved just to setup each param. If there's some HTTP echo command that can be passed to the CGI, that would probably work beautifully. I KNOW JS can do this, but I'm opposed to using JS all over the site.
Thank you wise monks, yet again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recalling the URL of initiating page
by skx (Parson) on Jan 24, 2005 at 10:15 UTC | |
|
Re: Recalling the URL of initiating page
by gellyfish (Monsignor) on Jan 24, 2005 at 10:56 UTC | |
by sulfericacid (Deacon) on Jan 24, 2005 at 16:49 UTC | |
|
Re: Recalling the URL of initiating page
by PodMaster (Abbot) on Jan 24, 2005 at 08:42 UTC | |
by sulfericacid (Deacon) on Jan 24, 2005 at 16:46 UTC | |
|
Re: Recalling the URL of initiating page
by mkirank (Chaplain) on Jan 24, 2005 at 08:45 UTC | |
|
Re: Recalling the URL of initiating page
by TedPride (Priest) on Jan 24, 2005 at 12:46 UTC | |
|
Re: Recalling the URL of initiating page
by r34d0nl1 (Pilgrim) on Jan 24, 2005 at 14:01 UTC |