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


in reply to RE: Getting username and password from the URL.
in thread Getting username and password from the URL.

If you are using mod_perl, try this:

The server is running mod_perl (I can see "mod_perl" on the "server" part of the http responses), I tryed this:

#!/usr/bin/perl print "Content type: text/html\n\n"; $username = $r->connection->user; my($ret, $password) = $r->get_basic_auth_pw; print $password;
And I get an "Internal Server Error". Do I have to use some library or something on the script?

Thanks!