perlapacheapache2mod-perlapache2-module

Is Apache::Request (old perl/apache) the same as HTTP::Request (new perl/Apache)?


Hello Perl warriors.

I'm totally new to the language and have been placed on a interesting project of porting an application that was originally written for Apache 1.3 (and the older Perl), to RHEL / CentOS 6 with Apache 2.2.x and mod_perl.

As for calling in lib's:

is

Apache::Request (old perl/apache) the same as HTTP::Request (Apache2, mod_perl)?

Additionally, if anyone has any resources they have found to be particularly useful during a perl upgrade / porting project, it would be greatly appreciated.


Solution

  • No, HTTP::Request is part of the LWP ecosystem and is used for constructing client-side HTTP requests for Perl HTTP clients.

    You're probably looking for Apache2::Request which is part of the libapreq distribution for Apache 2.