http://www.perlmonks.org?node_id=207581


in reply to Incorporate .htaccess password protection in a CGI script

$ENV{REMOTE_USER} has worked fine for me in the past using .htaccess authentication. Can you offer some detail on your setup?

Update: Comprehension dawned with more detail, see upthread, which makes this comment useless except to confirm for random browsers that $ENV{REMOTE_USER} works as advertised with .htaccess.