On Mon, 1 Dec 2003 [EMAIL PROTECTED] wrote: > Hi All > > I'm trying to get the whole http request body with something like: > > use Apache (); > my $r = Apache->request; > > also tried: > > use Apache::Request; > my $apr = Apache::Request->new($r); > > but failed with the following in the error log: > > Can't locate object method "new" via package "Apache" (perhaps you forgot to > load "Apache"?) > Can't locate object method "new" via package "Apache::Request" (perhaps you > forgot to load "Apache::Request"?) > > Apache and Apache::Request is installed. I also installed libapreq via ppm.
Is this for a script that's being run from the command line? If so, this may be the expected behaviour, as some Apache modules require you to be in an Apache environment to work. If this is an error from a script or handler being run from within Apache, can you post a minimal example, plus configuration details, that illustrates the problem? -- best regards, randy kobes -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html