use Apache2::Const qw(FORBIDDEN NOT_FOUND OK);
exports explicitly into namespace.
Apache2::RequestIO qw(print);
to allow 'print' in your code.
$r->send_http_header
but use
$r->rflush
to force sending headers.
$req->connection->get_remote_host
instead of
$req->get_remote_host
$r->header_out->('Set-Cookie' => $cookie);
use
$r->err_headers_out->add('Set-Cookie' => $cookie);
Apache2::Upload
.
My main goal was simply to get an existing app working on mod_perl2.. and stay away from buckets and filters and all that (just for now). I did this is about 1.5 hours (once I understood what went where etc). I plan on adding an abstraction layer so that I can provide 1 version that'll support both mod_perl versions..
Porting notes: mod_perl1 to mod_perl2 0 Comments More | Login | Reply /