Garry Heaton wrote:
Stas Bekman wrote:


That's not what your server returns, that's a fake page that your
browser gives to you. You need to test with a command line tool, like
LWP's GET, lynx, links or whatever is available on your OS.

I remember someone asked that question before. Something about STDOUT
being detached from $r. You could test with a simple script:

# test.pl
my $r = shift;
$r->print("Content-type: text/plain\n\n");
$r->print("It works");

[...]
It works but can you explain what value $r receives from 'shift' when no
argument is supplied via @ARGV?

What Perrin said and it's illustrated here: http://perl.apache.org/docs/2.0/user/coding/coding.html#C_ModPerl__Registry__Handlers_Family http://perl.apache.org/docs/2.0/user/coding/coding.html#Getting_the_C__r__Object

Also, I was only intending to use
Apache::Registry to speed-up my CGI scripts but you seem to be using a
handler approach which I'm not familiar with. Does this mean that  my
mod_perl is working with handlers but just isn't treating normal CGI properly?

No, that just proved my suggestion that you have a problem with STDOUT which is normally tied to $r under mod_perl. Since it works with $r->print() you have the same problem as reported before. The solution was to recompile from scratch.


Seconding Perrin, using perl-...-RCX is usually a bad idea. They aren't supported. Don't use RCs, use proper releases. Though I can't promise that once you move to a non-RC release your problem will go away. But please report back what did you have to do (recompile as DSO/ non-DSO/ different compiler/etc) to make it working. Thanks.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to