httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Referring pages using apache + cgi scripts
Date Thu, 13 Feb 2003 13:31:01 GMT
>-----Original Message-----
>From: William Turrell []
>(perl code)
>my $q = new CGI;
>my $referer = $q->referer() || "";
>98-9% of the time it works, but for a few users it doesn't - 
>their referral
>page is blank in both the apache logfile and a logfile I'm 
>generating from
>the second CGI script.  I can also verify that in all cases 
>they definitely
>did go to the first page by looking back a few seconds.

The may indeed have accessed the first page, but are you sure that they
came to the second page by clicking a link in the first? If the simply
typed the URL of the second page into the address bar then the request
will have no "Referer" header (indeed, it MUST NOT, according to the

>Any reason why this information wouldn't be being passed on? The people
>we've asked seem to have modern browsers (IE 5 or 6) and 
>operating systems
>(WinNT etc.), and I assumed that referral information was 
>mandatory anyway.

It is not mandatory as far as RFC 2068 (HTTP/1.1) is concerned. In fact,
the RFC advises that the client application (i.e. the browser) allows
the user to disable sending of the Referer header for reason of
confidentiality. Perhaps those few users have done this (BTW, does it
NEVER work for a few users or does it sometimes work for everyone?).

Owen Boyle

>Is there a solution?
>Thanks for your help,
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message