Re: Mod_Perl2 getting started

<[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <84414A5F1A2547FD81B4FF7EFC5AC2A8@JosephPC>
-----Original Message----- 
From: Fred Moyer
Try this link:
http://perl.apache.org/docs/2.0/user/intro/start_fast.html
--------------------------
Yes, thanks - I've read that.



-----Original Message----- 
From: Fred Moyer
For handling POST data you will likely want to install libapreq2,
which is basically the equivalent of CGI:

http://search.cpan.org/dist/libapreq2/

use Apache2::Request;

    $req = Apache2::Request->new($r);
    @foo = $req->param("foo");
    $bar = $req->args("bar");
-----------------------------------------

Thanks for the specifics- so something like this (below) should not
just die without an error message if I'm on track? (It just dies without
response
or error message - if I remove Apache2::Request->new($r) call it reponds
with the message to the browser..

So I 'm thinking libareq2 is not installed correctly yet?
My server provider is installing the apahce + perl etc. so
I'm partly at their mercy to get it correct. I just had no verified
test cases that I could say to them: This *should* work if the installation
is correct...

Thanks agains,
Joe N


##############
package respHandler;
use strict;

use Apache2::Const qw(:common);
use Apache2::Request ();
1;

sub handler {
    my $r = shift;

    my $req = Apache2::Request->new($r);

    $r->content_type('text/plain');
    print "mod_perl 2.0 OK!\n";

    return OK;
}
#############
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.