I want to be able to set the HTTP_REFERER Enviroment variable. I've tried using the following

$ENV{'HTTP_REFERER'}  "http://www.rt4all.com";

and if I use

print $ENV{'HTTP_REFERER'};

from the same piece of code it works ok. When I use the print from the cgi program I am calling the http_referer field is blank, I'm calling it by opening a new window using javascript and html

print "Content-type: text/html\n\n"; print <<"HTML code"; <SCRIPT language=JavaScript> function openwind() { win1=window.open('http://www.ringtones4all.com/cgi/topsite.cgi?value=$ +member', '',config='height=800,width=600') } </script>

Edit kudra, 2002-05-09 Fixed unclosed CODE tag, new title


In reply to want to set http_referer environment variable by kinghobo

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.