After adding 'use GForum::mod_perl' in startup.pl, all scripts that are running under mod_perl and imports CGI.pm can't use "param" function for reading data transferred by POST method, though $r->content() returns all transferred data.
Nov 24, 2001, 1:20 AM
Administrator (9387 posts)
Nov 24, 2001, 1:20 AM
Post #2 of 5
Views: 2351
Hi,
Do you mean CGI.pm or GT::CGI? Are you referring to scripts outside of Gossamer Forum? If you do mean CGI.pm, what version are you using?
Cheers,
Alex
--
Gossamer Threads Inc.
Do you mean CGI.pm or GT::CGI? Are you referring to scripts outside of Gossamer Forum? If you do mean CGI.pm, what version are you using?
Cheers,
Alex
--
Gossamer Threads Inc.
Yes, I meant CGI.pm ($CGI:: VERSION = '2.752';)
Any script ceases to work with the data of the form, even if it from other virtual host. CGI.pm refuses parsing the transferred data. param('xxx') always return undef.
W2k
Apache 1.3.20
ActiveState perl v5.6.1 build 628
mod_perl 1.26_01-dev from ActiveState
Any script ceases to work with the data of the form, even if it from other virtual host. CGI.pm refuses parsing the transferred data. param('xxx') always return undef.
W2k
Apache 1.3.20
ActiveState perl v5.6.1 build 628
mod_perl 1.26_01-dev from ActiveState
Nov 25, 2001, 11:45 AM
Administrator (9387 posts)
Nov 25, 2001, 11:45 AM
Post #4 of 5
Views: 2299
Hi,
Thanks we'll take a look into this. Can you give me some simple steps to reproduce, i.e.:
1. Add use lib '/path/to/forum' and use GForum::mod_perl to your startup file.
2. Restart Apache
3. Run the following script:
#!/usr/bin/perl
use CGI qw/:all/;
print header(), "you entered: ", param('foo');
4. Go to testscript.cgi?foo=test
and it doesn't print out the param?
This will help me track down what is wrong.
Cheers,
Alex
--
Gossamer Threads Inc.
Thanks we'll take a look into this. Can you give me some simple steps to reproduce, i.e.:
1. Add use lib '/path/to/forum' and use GForum::mod_perl to your startup file.
2. Restart Apache
3. Run the following script:
#!/usr/bin/perl
use CGI qw/:all/;
print header(), "you entered: ", param('foo');
4. Go to testscript.cgi?foo=test
and it doesn't print out the param?
This will help me track down what is wrong.
Cheers,
Alex
--
Gossamer Threads Inc.