Get htpasswd username

Discussion in 'Perl Misc' started by hgwoss@gmx.de, Aug 6, 2005.

  1. Guest

    Hi,

    I want to process the current users htpasswd username, which he has
    entered in order to access a website.

    I would appreciate any info.
     
    , Aug 6, 2005
    #1
    1. Advertising

  2. Paul Lalli Guest

    wrote:
    > Hi,
    >
    > I want to process the current users htpasswd username, which he has
    > entered in order to access a website.
    >
    > I would appreciate any info.


    Apache stores this in the REMOTE_USER environment variable. Perl
    provides access to the environment variables via the global %ENV hash.
    Therefore:

    my $username = $ENV{REMOTE_USER};

    Paul Lalli
     
    Paul Lalli, Aug 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christopher Brandsdal

    Htpasswd

    Christopher Brandsdal, Dec 12, 2003, in forum: ASP General
    Replies:
    3
    Views:
    109
    Mark Schupp
    Dec 13, 2003
  2. Christopher Brandsdal

    Htpasswd

    Christopher Brandsdal, Dec 12, 2003, in forum: ASP General
    Replies:
    0
    Views:
    106
    Christopher Brandsdal
    Dec 12, 2003
  3. Anka Anka

    htpasswd

    Anka Anka, May 21, 2008, in forum: Ruby
    Replies:
    6
    Views:
    108
    Phil Thompson
    Mar 2, 2011
  4. shawn modersohn

    Apache::Htpasswd question

    shawn modersohn, Sep 21, 2006, in forum: Perl Misc
    Replies:
    1
    Views:
    122
  5. PerlFAQ Server
    Replies:
    0
    Views:
    128
    PerlFAQ Server
    Apr 13, 2011
Loading...

Share This Page