There are also some browsers which have an option to supress the referrer. (It used to be that they were way too liberal with information given -- the early versions of Netscape used to send your e-mail address with every request, and the referer header with whatever the last page you were on, even if it you weren't following a link.)

You might want to try a different browser, and see if you continue to have the same problem. Oh -- and the correct spelling is the misspelled one -- %ENV{'HTTP_REFERER'}. You can check all of the variables that you have to work with something like:

warn map { sprintf "%20s : %s\n", $_, $ENV{$_} } sort keys %ENV;

(will send to your webserver's error log, unless you've changed where STDOUT STDERR goes)

Update: STDOUT != STDERR. (shouldn't post before I've had my morning caffeine.. thanks manav for the catch)


In reply to Re^2: Getting the http referer by jhourcle
in thread Getting the http referer by Delusional

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.