>> I ran scripts to list all the environmental variables and in both cases, the HTTP_REFERER was not listed.<<
HTTP_REFERER will only exist when there IS an HTTP_REFERER.
If you call your listing script from another page, HTTP_REFERER should be there, but if you just type in the script address...