soon_j has asked for the wisdom of the Perl Monks concerning the following question:
Greetings to all! I have a script (let me call it script1.cgi) that does something, and at the end of it, it generates an output html that has a javascript that is executed upon loading "location.href=http://www.something.com/script2.cgi". Basically what the html accomplishes is a sort of re-direction to the script "script2.cgi".
The second script "script.cgi" would only do something if the referrer is from http://www.something.com/script1.cgi, else it would return an error. This is why I used $ENV{HTTP_REFERER} in my script2.cgi.
The problem is that when I tested this with a Linux platform (Mozilla, Netscape, Galeon), the referrer is recognized, but when I accessed it using a Windows platform (IE5.5 and higher), the referrer environment variable is simply blank,... therefore my script2.cgi would return an error.
Why is this so? What would be a better way to call another script or a re-direction? Example, at the end of "script1.cgi" I would want to run and execute "script2.cgi". Would it solve the issue?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: $ENV{HTTP_REFERER} Problem on a Windows Client
by merlyn (Sage) on May 24, 2004 at 11:53 UTC | |
by soon_j (Scribe) on May 24, 2004 at 12:04 UTC | |
by merlyn (Sage) on May 24, 2004 at 12:15 UTC | |
by soon_j (Scribe) on May 24, 2004 at 12:43 UTC | |
|
Re: $ENV{HTTP_REFERER} Problem on a Windows Client
by fruiture (Curate) on May 24, 2004 at 12:03 UTC | |
by soon_j (Scribe) on May 24, 2004 at 12:11 UTC |