in reply to want to set http_referer environment variable
document.referrer in JS is a read only do element (yes, it is spelt differently!)
Instead of opening the script direct in the window, open a dummy page that calls the script (eg, ...<body onload="document.href=... etc "><h3>Loading</h3>...). That should send a referer.
If this is a security measure, it's poor security - LWP::UserAgent can fake HTTP_REFERER easily. I suggest you drop that and use a session cookie instead.
But with no context or explanation why, it's just my...
.02
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: http_referer (javascript issue: location.href)
by fraktalisman (Hermit) on Sep 26, 2003 at 12:57 UTC | |
by cLive ;-) (Prior) on Sep 26, 2003 at 16:58 UTC |