Reposting... since I unintentionally sent the previous message as html.
Thanks Stas Bekman for noticing.

---------------

Hello everybody.

I am calling an ssi-enabled html page and it has an
SSI request to a mod_perl script.

I am making a request to http://localhost/info.shtml?name=john&age=25&sex=m

Or something similar.

Now. How can I get the params passed to shtml from within mod_perl program ?

I tried the script bellow, but it only works when I call it directly and not when it's 
called from SSI.

I am using Apache/2.0.47 (Win32) mod_perl/1.99_12-dev Perl/v5.8.0 PHP/4.3.4 Server.

ssi and mod_perl is configured properly. I just can't get the params.

Thanks for your help.

my perl file is:

#!/usr/bin/perl

use strict;
use CGI;

my $cgi = new CGI;
my @params = $cgi->param();

# Start http header
print "Content-type: text/plain\n\n";

print @params;
print $cgi->param('name');


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

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

Reply via email to