Click to See Complete Forum and Search --> : CGI Variable HTTP_REFERER


OceanBear
04-10-2004, 11:39 AM
I am trying to determine where a visitor comes from when arriving at my website - wanting to give credit where it is due and for curiosity as well.

I had understood hat this is a simple matter of looking at the HTTP_REFERER CGI variable.

My first attempt failed because there was no indication of an arrival at index.html (duh).

So I tried to be clever and made a tiny webpage which did nothing other than to send a request directly to the server to produce my home page - and - still empty.

So how can we get this information?

buntine
04-10-2004, 12:10 PM
You will have to use the ENV (environment) collection. Here is a resource which may be helpful.

http://www.perlfect.com/articles/cgi_env.shtml

Regards,
Andrew Buntine.

EDIT: This should have been posted in the Perl forum. The forum should be renamed to 'Perl/CGI'.:p