Not reading $ENV variable

2003-06-03 Thread Chris Pizzo
Hi all,
I'm seeing a weird thing.  Sometimes my script sees nothing in the 
$ENV{HTTP_REFERER} variable.  Im not sure what is causing this.  It works 
some of the time.

I do this at the begining of the script...heres the code:

my $r = Apache-request;

use DBI;# for connecting to the database

my $refer_url = $ENV{HTTP_REFERER};

basically the script takes form data and inserts it to a db then returns 
back to the refering page.

Thanks for any ideas
Chris


Re: Not reading $ENV variable

2003-06-03 Thread Andrew Ho
Hello,

CPI'm seeing a weird thing. Sometimes my script sees nothing in the
CP$ENV{HTTP_REFERER} variable. Im not sure what is causing this. It
CPworks some of the time.

You are never guaranteed to receive a Referer header; first of all, it is
sent by the client, and the HTTP client involved has no obligation to set
it at all on outgoing requests--it's just a convention that most desktop
browsers follow. Second, some application level HTTP proxies block
outgoing Referer headers for security reasons. Finally, it's possible that
a user bookmarked a page or typed in a URL and hence no Referer was
involved at all.

Humbly,

Andrew

--
Andrew Ho   http://www.tellme.com/   [EMAIL PROTECTED]
Engineer1-800-555-TELL  Voice 650-930-9062
Tellme Networks, Inc. Fax 650-930-9101
--