I can't seem to get the ENV variable HTTP_REFERER when posting with CGI from one program to another. In my post program I have put in the <HEAD>
- ie www.xyz.com (I have also tried removing it entirely in case that was causing problems.
I have tried to extract the HTTP_REFERER in my receiving program with
That didn't work so I just printed all variables with
What I get printed is (and I'll just copy the few before and after where I might have expected to see it:
HTTP_KEEP_ALIVE = 300
HTTP_USER_AGENT = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
HTTP________ = -------------------------------------------------------------------------------------
HTTP___________ _____ = ------------
PATH = /usr/local/bin:/usr/bin:/bin
There was no HTTP_REFERER listed.
Thanks for any help I can get on this.
Code:
HTTP_REFERER =my host
I have tried to extract the HTTP_REFERER in my receiving program with
Code:
$http_ref = $ENV{'HTTP_REFERER'};
Code:
foreach $key (sort keys(%ENV)) {
print "$key = $ENV{$key}<p>"; }
HTTP_KEEP_ALIVE = 300
HTTP_USER_AGENT = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
HTTP________ = -------------------------------------------------------------------------------------
HTTP___________ _____ = ------------
PATH = /usr/local/bin:/usr/bin:/bin
There was no HTTP_REFERER listed.
Thanks for any help I can get on this.
Comment