We don't bite newbies here... much | |
PerlMonks |
Re: Getting username and password from the URL.by chromatic (Archbishop) |
on Jun 11, 2000 at 02:27 UTC ( [id://17550]=note: print w/replies, xml ) | Need Help?? |
$ENV{REMOTE_USER} will give you the username, after it's been authenticated by the web server.
If you've built your own server out of something like HTTP::Daemon, you can get a request object and grab the Authorization header to parse it yourself:
Update: Yeah, that did say 'REQUEST_USER' before. Sorry, I merged the right line with the description of 'REQUEST_METHOD' as I read it.
In Section
Seekers of Perl Wisdom
|
|