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?
In reply to $ENV{HTTP_REFERER} Problem on a Windows Client by soon_j
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |