Re: Can't call Apache::Request-new()
Hi there, On Fri, 14 Dec 2001, Anand R wrote: The Request Object contains info sent to the server in the client's request. [snip] Maybe this should not a big problem,U just have to have a look at the Apache Doc. I think he's trying to say perldoc Apache::Request :) 73, Ged. PS: Cute email address Paul.
Re: Can't call Apache::Request-new()
Yes PerlDoc . And you have a very good doc on Indigoperl. U even have it in mod_perl :) - PS:- Paul I saw your site and that is real nice. - Original Message - From: Ged Haywood [EMAIL PROTECTED] To: Anand R [EMAIL PROTECTED] Cc: Paul Makepeace [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 14, 2001 2:01 PM Subject: Re: Can't call Apache::Request-new() Hi there, On Fri, 14 Dec 2001, Anand R wrote: The Request Object contains info sent to the server in the client's request. [snip] Maybe this should not a big problem,U just have to have a look at the Apache Doc. I think he's trying to say perldoc Apache::Request :) 73, Ged. PS: Cute email address Paul.
Re: Can't call Apache::Request-new()
On Fri, Dec 14, 2001 at 08:31:26AM +, Ged Haywood wrote: Hi there, On Fri, 14 Dec 2001, Anand R wrote: The Request Object contains info sent to the server in the client's request. [snip] Maybe this should not a big problem,U just have to have a look at the Apache Doc. I think he's trying to say perldoc Apache::Request Hmm, I was hoping I was way beyond that! Perhaps I'm not being clear -- I'm use'ing a module and calling a documented method and then perl is claiming the module isn't loaded. I showed a command line that demonstrated this ( that the module is installed) and then said it also happened when under mod_perl. To go into even more detail, here is how I'm calling it under mod_perl. I'm new to this so quite possibly the mistake's somewhere here... httpd.conf: Files /perl-bin/*.cgi SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On /Files apr.cgi: #!/usr/bin/perl -Tw use strict; use Apache::Request; my $r = shift; my $apr = Apache::Request-new($r); my @params = $apr-param; print HTML; Content-type: text/plain @params; HTML And sho' nuff ...error.log contains, Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at /home/wwwrp/perl-bin/apr.cgi line 7. [Fri Dec 14 00:43:14 2001] [error] [client 172.30.0.3] Premature end of script headers: /home/wwwrp/perl-bin/apr.cgi :) 73, Ged. PS: Cute email address Paul. Heh thanks -- no prizes for guessing which device file x10.com@ goes to :-) 55, Paul -- Paul Makepeace ... http://paulm.com/ What is the meaning of life? The unforgiven. -- http://paulm.com/toys/surrealism/
Re: Can't call Apache::Request-new()
As far as the httpd.conf goes , Alias /perl/ /real/path/to/perl/scripts/ Location /perl SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI /Location PerlModule Apache :: Registry PerlModule CGI PerlSendHandler On Files *.perl SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI /Files Check these with your setup,..But I think you have given it right Maybe this time it is solved. Regards, Anand - Original Message - From: Paul Makepeace [EMAIL PROTECTED] To: Ged Haywood [EMAIL PROTECTED] Cc: Anand R [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 14, 2001 2:22 PM Subject: Re: Can't call Apache::Request-new() On Fri, Dec 14, 2001 at 08:31:26AM +, Ged Haywood wrote: Hi there, On Fri, 14 Dec 2001, Anand R wrote: The Request Object contains info sent to the server in the client's request. [snip] Maybe this should not a big problem,U just have to have a look at the Apache Doc. I think he's trying to say perldoc Apache::Request Hmm, I was hoping I was way beyond that! Perhaps I'm not being clear -- I'm use'ing a module and calling a documented method and then perl is claiming the module isn't loaded. I showed a command line that demonstrated this ( that the module is installed) and then said it also happened when under mod_perl. To go into even more detail, here is how I'm calling it under mod_perl. I'm new to this so quite possibly the mistake's somewhere here... httpd.conf: Files /perl-bin/*.cgi SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On /Files apr.cgi: #!/usr/bin/perl -Tw use strict; use Apache::Request; my $r = shift; my $apr = Apache::Request-new($r); my @params = $apr-param; print HTML; Content-type: text/plain @params; HTML And sho' nuff ...error.log contains, Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at /home/wwwrp/perl-bin/apr.cgi line 7. [Fri Dec 14 00:43:14 2001] [error] [client 172.30.0.3] Premature end of script headers: /home/wwwrp/perl-bin/apr.cgi :) 73, Ged. PS: Cute email address Paul. Heh thanks -- no prizes for guessing which device file x10.com@ goes to :-) 55, Paul -- Paul Makepeace ... http://paulm.com/ What is the meaning of life? The unforgiven. -- http://paulm.com/toys/surrealism/
RE: Can't call Apache::Request-new()
I think I know what's happening here. Your script is running as a CGI, not as mod_perl. Check: print not unless $ENV{MOD_PERL}; print running under mod_perl\n; Matt. -- :-Get a smart net/:- -Original Message- From: Paul Makepeace [mailto:[EMAIL PROTECTED]] Sent: 14 December 2001 08:53 To: Ged Haywood Cc: Anand R; [EMAIL PROTECTED] Subject: Re: Can't call Apache::Request-new() On Fri, Dec 14, 2001 at 08:31:26AM +, Ged Haywood wrote: Hi there, On Fri, 14 Dec 2001, Anand R wrote: The Request Object contains info sent to the server in the client's request. [snip] Maybe this should not a big problem,U just have to have a look at the Apache Doc. I think he's trying to say perldoc Apache::Request Hmm, I was hoping I was way beyond that! Perhaps I'm not being clear -- I'm use'ing a module and calling a documented method and then perl is claiming the module isn't loaded. I showed a command line that demonstrated this ( that the module is installed) and then said it also happened when under mod_perl. To go into even more detail, here is how I'm calling it under mod_perl. I'm new to this so quite possibly the mistake's somewhere here... httpd.conf: Files /perl-bin/*.cgi SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI PerlSendHeader On /Files apr.cgi: #!/usr/bin/perl -Tw use strict; use Apache::Request; my $r = shift; my $apr = Apache::Request-new($r); my @params = $apr-param; print HTML; Content-type: text/plain @params; HTML And sho' nuff ...error.log contains, Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at /home/wwwrp/perl-bin/apr.cgi line 7. [Fri Dec 14 00:43:14 2001] [error] [client 172.30.0.3] Premature end of script headers: /home/wwwrp/perl-bin/apr.cgi :) 73, Ged. PS: Cute email address Paul. Heh thanks -- no prizes for guessing which device file x10.com@ goes to :-) 55, Paul -- Paul Makepeace ... http://paulm.com/ What is the meaning of life? The unforgiven. -- http://paulm.com/toys/surrealism/ This email has been scanned for all viruses by the Star Internet Virus Screen. The service is provided in partnership with MessageLabs, the email security company. For more information on a higher level of virus protection visit www.star.net.uk _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service.
RE: Can't call Apache::Request-new()
Paul, I have version .33 working on perl 5.6.1 on a redhat 7.2 box (I compiled perl myself). However, if I do the command you do below, I get the same error. --Alex -Original Message- From: Paul Makepeace [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 12:43 AM To: [EMAIL PROTECTED] Subject: Re: Can't call Apache::Request-new() So no replies to this -- could someone even confirm they have a working Apache::Request v0.33 on perl 5.6.1? That would be a big help in at least determining whether it's perhaps something amiss here. Else I'll file it as a bug. Cheers, Paul On Tue, Dec 11, 2001 at 09:11:50PM -0800, Paul Makepeace wrote: I'm getting the following error, $ perl -MApache::Request -e 'Apache::Request-new' Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at -e line 1. $ ...both from the command line and under a PerlHandler Apache::Registry'd script. Of course, it is installed: $ perl -MApache::Request -le 'print grep /Request/, values %INC; print $Apache::Request::VERSION' /usr/local/lib/perl/5.6.1/Apache/Request.pm 0.33 $ In all other respects I'm able to discern so far mod_perl, Perl and Apache are working here (I have a number of sites using Template Toolkit with a custom PerlHandler and a few scripts under Apache::Registry). I'm getting this error from both a fresh CPAN install and Debian's libapache-request-perl package (not installed at the same time!). Any suggestions where to start looking? Thanks, Paul PS Rather than cluttering your inbox, perl -V is at http://paulm.com/tmp/perl_v.txt
RE: Can't call Apache::Request-new()
Hi all, On Fri, 14 Dec 2001, Alex Porras wrote: I have version .33 working on perl 5.6.1 on a redhat 7.2 box (I compiled perl myself). However, if I do the command you do below, I get the same You need a request object to give to Apache::Request::new(). It makes no sense to call it from the command line because then you haven't got one. 73, Ged.
Re: Can't call Apache::Request-new()
So no replies to this -- could someone even confirm they have a working Apache::Request v0.33 on perl 5.6.1? That would be a big help in at least determining whether it's perhaps something amiss here. Else I'll file it as a bug. Cheers, Paul On Tue, Dec 11, 2001 at 09:11:50PM -0800, Paul Makepeace wrote: I'm getting the following error, $ perl -MApache::Request -e 'Apache::Request-new' Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at -e line 1. $ ...both from the command line and under a PerlHandler Apache::Registry'd script. Of course, it is installed: $ perl -MApache::Request -le 'print grep /Request/, values %INC; print $Apache::Request::VERSION' /usr/local/lib/perl/5.6.1/Apache/Request.pm 0.33 $ In all other respects I'm able to discern so far mod_perl, Perl and Apache are working here (I have a number of sites using Template Toolkit with a custom PerlHandler and a few scripts under Apache::Registry). I'm getting this error from both a fresh CPAN install and Debian's libapache-request-perl package (not installed at the same time!). Any suggestions where to start looking? Thanks, Paul PS Rather than cluttering your inbox, perl -V is at http://paulm.com/tmp/perl_v.txt
Re: Can't call Apache::Request-new()
The Request Object contains info sent to the server in the client's request. The Information stored under the Request object *ClientCertificate *Cookies *form *QueryString *ServerVariables The ServerVariables collections stores both ENV variables relavent to the transaction and HTTP headers sent in the request. The header objects are accessiable by using the syntax:- HTTP_HeaderName Maybe after all these clarification will help you,If I have understood your problem. Subject: Re: Can't call Apache::Request-new() Maybe this should not a big problem,U just have to have a look at the Apache Doc. regards, Anand DSM Soft (P) Ltd www.dsmsoft.com - Original Message - From: Paul Makepeace [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 14, 2001 12:12 PM Subject: Re: Can't call Apache::Request-new() So no replies to this -- could someone even confirm they have a working Apache::Request v0.33 on perl 5.6.1? That would be a big help in at least determining whether it's perhaps something amiss here. Else I'll file it as a bug. Cheers, Paul On Tue, Dec 11, 2001 at 09:11:50PM -0800, Paul Makepeace wrote: I'm getting the following error, $ perl -MApache::Request -e 'Apache::Request-new' Can't locate object method new via package Apache::Request (perhaps you forgot to load Apache::Request?) at -e line 1. $ ...both from the command line and under a PerlHandler Apache::Registry'd script. Of course, it is installed: $ perl -MApache::Request -le 'print grep /Request/, values %INC; print $Apache::Request::VERSION' /usr/local/lib/perl/5.6.1/Apache/Request.pm 0.33 $ In all other respects I'm able to discern so far mod_perl, Perl and Apache are working here (I have a number of sites using Template Toolkit with a custom PerlHandler and a few scripts under Apache::Registry). I'm getting this error from both a fresh CPAN install and Debian's libapache-request-perl package (not installed at the same time!). Any suggestions where to start looking? Thanks, Paul PS Rather than cluttering your inbox, perl -V is at http://paulm.com/tmp/perl_v.txt