in reply to Getting the http referer

$ENV{'HTTP_REFERER'} should get it if the header is present. It may not be, depending on the browser and how it acquired the url.

After Compline,
Zaxo