I need to get the remote user name in my CGI script. Where do I find that? I want to display that name on the page that I return.
相关问题
- $ENV{$variable} in perl
- Is it possible to pass command-line arguments to @
- Redirecting STDOUT and STDERR to a file, except fo
- Change first key of multi-dimensional Hash in perl
- How do I get a filehandle from the command line?
相关文章
- Running a perl script on windows without extension
- Comparing speed of non-matching regexp
- Can NOT List directory including space using Perl
- Extracting columns from text file using Perl one-l
- Lazy (ungreedy) matching multiple groups using reg
- How do I tell DBD::mysql where mysql.sock is?
- What is a good way to deploy a Perl application?
- Speeding up Selenium Webdriver
Under the CGI spec, the HTTP-auth user name will be in the environment variable
REMOTE_USER
. In Perl you can get this via$ENV{REMOTE_USER}
.You can find descriptions of all the standard CGI environment variables, including
REMOTE_USER
, in section 4 of RFC 3875.The
remote_user()
method in the CGI module.If you're not using the CGI module, the environment variable REMOTE_USER:
$ENV{REMOTE_USER}