[wellylug] cgi script/html question
Mark Signal
mark at databackup.co.nz
Mon Sep 6 14:54:46 NZST 2004
That was the missing piece of the puzzle.
It all works perfectly
$HTTP_REFERER was what I was after.
thanks for your help
cheers
Mark
-----Original Message-----
From: wellylug-admin at lists.wellylug.org.nz
[mailto:wellylug-admin at lists.wellylug.org.nz]On Behalf Of
jfouhy at paradise.net.nz
Sent: Monday, 6 September 2004 2:23 p.m.
To: wellylug at lists.wellylug.org.nz
Subject: Re: [wellylug] cgi script/html question
Quoting Mark Signal <mark at databackup.co.nz>:
> I'm googling myself around in circles here.....
>
> What I can't do is figure out to capture the originating web page
> address as a variable so that I can replace the address in the JavaScript
> with the variable of the origination page.
Can you just look at $HTTP_REFERER ?
If you make a CGI script:
------------------------------------------
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "<pre>"
env
------------------------------------------
and then make an HTML page that links to it, you'll be able to see what
variables your web server is setting.
--
John.
--
Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
To Leave: http://lists.wellylug.org.nz/mailman/listinfo/wellylug
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 3/09/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.752 / Virus Database: 503 - Release Date: 3/09/2004
More information about the wellylug
mailing list