[MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Torsten Foertsch
Hi, is it possible to run a subrequest and send the output to a PerlResponseHandler instead of the browser. I think it can be done with a filter that gathers all output ... Is there anything available like $subr=$r-lookup_uri(...); $response_body=$subr-run_with_output_to_me; if(

Re: Accessing main:: from within a package

2005-05-27 Thread Perrin Harkins
On Thu, 2005-05-26 at 18:30 -0700, Ken Clarke wrote: I have a library of perl modules which occasionally make reference to package main:: (EG $main::ScriptGlobalHash{'hashkey'} or my $result = main::SomeSubroutine(\%args)) However, if my understanding of the docs is correct, my main

Re: [MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Stas Bekman
Torsten Foertsch wrote: Hi, is it possible to run a subrequest and send the output to a PerlResponseHandler instead of the browser. I think it can be done with a filter that gathers all output ... Is there anything available like $subr=$r-lookup_uri(...);

[mp2] no STDIN for mod_cgi POST after ModPerl::Registry GET

2005-05-27 Thread Joe Cullin
Hi, I mailed a bug report with this same subject a few days ago. I'm just curious, does this sound like an unusual problem with my all of my builds, or is this kind of problem with STDIN common when serving mod_cgi and ModPerl::Registry scripts from the same apache? I found an old post with a

Sessions in rc6+ ?

2005-05-27 Thread jonathan vanasco
Has anyone ported Apache::Session to apache2 yet? or know how to get that stuff to work?

Re: Sessions in rc6+ ?

2005-05-27 Thread Perrin Harkins
On Fri, 2005-05-27 at 18:08 -0400, jonathan vanasco wrote: Has anyone ported Apache::Session to apache2 yet? There's no porting to be done. Apache::Session has no hooks to mod_perl or Apache. - Perrin

Re: [MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Dorian Taylor
http://search.cpan.org/dist/Apache-TrapSubRequest/lib/Apache/TrapSubRequest.pm this is actually broken. it needs the ap_save_brigade patch. i'm in a c mood so i think i'll hook up an xs version tonight. thanks for reminding me. .dorian

Re: [MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Stas Bekman
Dorian Taylor wrote: http://search.cpan.org/dist/Apache-TrapSubRequest/lib/Apache/TrapSubRequest.pm this is actually broken. it needs the ap_save_brigade patch. i'm in a c mood so i think i'll hook up an xs version tonight. thanks for reminding me. Or rewrite it to stash data from

Re: [MP2]how to catch the response body of a subrequest?

2005-05-27 Thread Dorian Taylor
Or rewrite it to stash data from $bb-flatten, instead of stashing brigades. In which case, no extra API is needed. this is true. i'll put something up on cpan tonight. .dorian

Re: [MP2] Test failure in t/apache/content_length_header.t on mod_perl 2.0.0

2005-05-27 Thread Steve Peters
On Wed, May 25, 2005 at 02:27:39PM -0400, Philip M. Gollucci wrote: Stas Bekman wrote: Steve Peters wrote: -8-- Start Bug Report 8-- 1. Problem Description: While installing mod_perl 2.0.0, I had some test failures.

Re: [MP2] Test failure in t/apache/content_length_header.t on mod_perl 2.0.0

2005-05-27 Thread Steve Peters
On Wed, May 25, 2005 at 02:27:39PM -0400, Philip M. Gollucci wrote: Stas Bekman wrote: Steve Peters wrote: -8-- Start Bug Report 8-- 1. Problem Description: While installing mod_perl 2.0.0, I had some test failures.

[mp2] no STDIN for mod_cgi POST after ModPerl::Registry GET

2005-05-27 Thread Joe Cullin
-8-- Start Bug Report 8-- 1. Problem Description: - I'm trying to run some ModPerl::Registry and some mod_cgi scripts on the same server. The problem is that sometimes the mod_cgi scripts get no input for POST requests (STDIN is

[mp2] lookup of 'Apache2::Reload::handler' failed

2005-05-27 Thread Kurt George Gjerde
Hi, On mod_perl 2.0.0 on gentoo linux I'm getting lookup of 'Apache2::Reload::handler' failed, after which the server returns 500 errors for all requests, not only mod_perl requests. Restart fixes the problem for a while. Grateful if anyone can point me in the right direction. Thanks,

Build of mod_perl 2.0.0 fails on bleadperl - no more HvPMROOT()

2005-05-27 Thread Steve Peters
As of about a week ago, PMROOT was removed from the HV struct and moved off to magic. Unfortunately, mod_perl seems to be using the HvPMROOT() macro to store away the modperl_interp_t pointer in modperl_interp.h. The comments seem to indicate that mod_perl isn't using PMROOT for its intended

Re: Sessions in rc6+ ?

2005-05-27 Thread jonathan vanasco
AH! I got a little overzealous from using http://perl.apache.org/docs/2.0/rename.html This section is a litttle confusing: Replace the use of use Apache::SomeCoreModule; in a script or module by use Apache2::SomeCoreModule; Perhaps someone