Are you hitting the page directly? If so then you will not get a referer.
You have to link to it from another page in order for that variable to be
set. If the page is the first to load in the browser there is no referring
page.

Just a thought!

John-

On Mon, 15 Jan 2001, Stef Telford wrote:

> John wrote:
> > I think your mispelling :
> > 
> > HTTP_REFERER , not HTTP_REFERRER
> > 
> > When in doubt run a check on your %ENV hash
> > 
> > foreach( keys %ENV ) {
> >     print "$_ = $ENV{ $_ }\n" ;
> > }
> > 
> 
> you know.. thats the funny thing. I DO that. i have
> changed the spelling of HTTP_REFERRER to HTTP_REFERER
> but still i dont get this showing up in mod_perl. is this set via
> another Apache module perhaps ? Is it okay to have the 
> mod_perl handle all the .pl files instead of mod_cgi ?
> 
> here is the $ENV sorted alphabetical, as you can see.
> no HTTP_REFERER of any sort. frankly i am a bit stumped
> by this. 
> 
> ----
> GATEWAY_INTERFACE="CGI-Perl/1.1"
> HTTPS="on"
> HTTP_ACCEPT="image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> image/png, */*"
> HTTP_ACCEPT_CHARSET="iso-8859-1,*,utf-8"
> HTTP_ACCEPT_ENCODING="gzip"
> HTTP_ACCEPT_LANGUAGE="en"
> HTTP_CONNECTION="Keep-Alive"
> HTTP_COOKIE="sessionid=NMqr%2Fl6Rilxfo;"
> HTTP_HOST="chronozon.dyndns.org"
> HTTP_PRAGMA="no-cache"
> HTTP_USER_AGENT="Mozilla/4.75 [en] (X11; U; FreeBSD 4.2-RELEASE i386;
> Nav)"
> MOD_PERL="mod_perl/1.24"
> ----
> 
> thanks for you time
> (and sorry my correct spelling ;)
> 
> regards,
> Stef
> 

Reply via email to