"Perrin Harkins" <[EMAIL PROTECTED]> writes: > On 6/10/07, Colin Wetherbee <[EMAIL PROTECTED]> wrote: >> I know Apache2::Request is supposed to be able to grab CGI parameters; >> is that "better" than using CGI.pm? > > It's faster, but CGI.pm fully supports Apache 2 and works fine. If > speed is not an issue for you, it's fine to stick with your CGI.pm > code.
For a typical mod_perl application, I tend to agree. However there is a significant difference in how apreq handles the raw post data versus CGI. Because apreq is implemented as a transparent input filter, it does not remove the post data from the input filter chain. The upshot of that design is that it allows you to use apreq in situations where CGI.pm's behavior of removing the post data is undesirable, for instance when implementing an output filter or an auth handler where the content handler itself isn't even mod-perl based. -- Joe Schaefer