in reply to want to set http_referer environment variable

This not a Perl issue, but a javascript one - OT though it is, it's also hard to answer without knowing the context in which openwind is called? href? onclick? etc.

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
    Did you test your example? There seems to be a mistake in your JavaScript syntax, as href is a property of location, not of document itself, so the command should be written like this:

    document.location.href='http://www.your-url.test'

    In addition it should be said that when changing location using JavaScript, Netscape (4.x) browsers will send a referrer, Internet Explorer (5 / 6) will not. I did not yet test what Netscape 7 / Mozilla does. Most of my customers use Internet Explorer on a Windows machine.

      No, JavaScript I detest, not test :)

      cLive ;-)

      --