sub handler { my $r = shift;

        return DECLINED if $r->content_type ne 'text/html';
        return SERVER_ERROR unless $r->can_stack_handlers;

$r->set_handlers(PerlHandler => ['ContentHandler']);

        return OK;
    }

What am I missing?

unlike the other phases of the request cycle, for the content phase you need to do two things - tell apache that mod_perl is in charge, and tell mod_perl which Perl handler it should use. you've done the latter. for the former, use $r->handler('perl-script'), which is analogous to SetHandler perl-script that you would ordinarily see for a mod_perl setup.


HTH

--Geoff



Reply via email to