Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to RE: RE: RE: Getting username and password from the URL.
by btrott
|
|