Hi there,

On Tue, 3 Feb 2004, Ian Huynh wrote:

> Is it possible to use mod_perl to handle the following
> 
> on a HTTP GET or POST, do the following
>   a) on invocation of GET or POST use perl/mod_perl to do an external call to 
> perform a task
>   b) let apache handle the GET/POST as normal
>   c) when apache has finished handling the GET/POST, use perl/mod_perl to do another 
> external call

Yes.  Look at the Eagle Book, there's a part which talks about the
various phases of the Apache request cycle.

"Writing Apache Modules with Perl and C", ISBN 1-56592-567-X

You can find other good books on the mod_perl Website.

> Ideally, in more than just POST and GET, I'd like to intercept (pre
> and post processing) of Apache HTTP command.  Is that possible?

If I understand you correctly then I think the answer is yes.
You can intervene at any stage of the Apache request cycle,
see the documentation.

73,
Ged.


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to