Pathologically Eclectic Rubbish Lister | |
PerlMonks |
RE: RE: RE: Getting username and password from the URL.by btrott (Parson) |
on Jun 12, 2000 at 06:37 UTC ( [id://17659]=note: print w/replies, xml ) | Need Help?? |
Yes, you'll need to get the $r object, which you don't have in
your script. $r is the Apache request record. You should set up your script as an Apache::Registry script. Then you can get $r like this: To set the script up as Apache::Registry, add something like this to httpd.conf: This sets up the perl subroutine under the document root to run under Apache::Registry. So put your script there. Or, if you set up a mod_perl handler, your handler subroutine will be passed $r. For example, you might set up a handler thusly in your httpd.conf: And then in My::Foo: I'd recommend trying the first approach.
In Section
Seekers of Perl Wisdom
|
|