On Fri, 2 Sep 2005, Christopher H. Laco wrote:
Philip M. Gollucci wrote:
Christopher H. Laco wrote:
Can't locate object method "dir_config" via package "Apache2::RequestRec"
Thats a good question. Your code looks fundamentally correct. Here's a
live example maybe it will help.
Here's wh
Christopher H. Laco wrote:
At this point, $r is a simple old RequestRec. IT appears I have to use
other mofules to enhance what $r can do.
My problem was that I wasn't including RequestIO for print or
RequestUtil for dir_config.
Me thinks you want to put stuff in your startup.pl file
See:
Philip M. Gollucci wrote:
Christopher H. Laco wrote:
Can't locate object method "dir_config" via package
"Apache2::RequestRec"
Thats a good question. Your code looks fundamentally correct. Here's a
live example maybe it will help.
Here's what I've learned.
handler {
my $r = shift
Christopher H. Laco wrote:
Can't locate object method "dir_config" via package "Apache2::RequestRec"
Thats a good question. Your code looks fundamentally correct. Here's a live
example maybe it will help.
http://p6m7g8.net/dir_config
SetHandler modperl
PerlResponseHandler TEST::DirC
I'm trying to get at PerlSetVar configurations, and this doesn't work
under MP2:
sub handler {
my $r = shift;
$r->print( $r->dir_config('MyConfig') );
return Apache2::Const::OK;
};
I'm getting this in the logs:
Can't locate object method "dir_config" via package "Apache2::Reque
Anton van Straaten wrote:
> Carl Johnstone wrote:
>
>>> I think a great first-place to start for advocacy is to work with the
>>> various linux/bsd/*nix distributions out there to make sure that they
>>> have a modern, compatible version of mod_perl 2. As a user, I don't
>>> want to maintain my o
Philip M. Gollucci wrote:
Anton van Straaten wrote:
Carl Johnstone wrote:
I think a great first-place to start for advocacy is to work with the
various linux/bsd/*nix distributions out there to make sure that they
have a modern, compatible version of mod_perl 2. As a user, I don't
want to
On Thursday 01 September 2005 04:26 pm, Philip M. Gollucci wrote:
> If people want to start emailing in what has what, I'll at least maintain
> the list until we figure out how best to use it and where to put it.
Mandrake/Mandriva 2005LE (the last release) has perl 5.8.6, httpd 2.0.54,
mod_perl
I've read in at least one place (a PHP book I think) that browsers are
very inconsistent in their
handling of the content-disposition header. Some will "believe" the
suggested filename, but
ignore the extension, and implied file type.
Have you considered looping back to your own script with a
Anton van Straaten wrote:
Carl Johnstone wrote:
I think a great first-place to start for advocacy is to work with the
various linux/bsd/*nix distributions out there to make sure that they
have a modern, compatible version of mod_perl 2. As a user, I don't
want to maintain my own perl/mod_perl
Carl Johnstone wrote:
I think a great first-place to start for advocacy is to work with the
various linux/bsd/*nix distributions out there to make sure that they
have a modern, compatible version of mod_perl 2. As a user, I don't
want to maintain my own perl/mod_perl build tree - I want my distr
1. Problem Description:
I am having problems getting 2 tests to pass when running make test. I
have appended the output below.
2. Used Components and their Configuration:
*** mod_perl version 2.01
*** using /usr/local/src/web/mod_perl-2.0.1.ser/lib/Apache2/BuildConfig.pm
*** Makefile.P
On Thu, 2005-09-01 at 14:49 +0100, Dermot Paikkos wrote:
> I tried to end the handler with a REDIRECT rather than an OK
> status, thinking that this was a really a redirect.
Nope, that's for internal redirects.
> print STDERR "redirecting, length=$length, ";
> $r->header_out(
> 'Content-
On 31 Aug 2005 at 13:48, Michael Peters wrote:
> > There is a way to do it, defined as part of HTTP or MIME -- I can't
> > quite remember. If you do an external redirect you won't have to bother
> > figuring it out.
>
> If you are generating your own content headers you use the
> Content-Disposi
Yup, that works great.
thanks!
JB
On 9/1/05, Geoffrey Young <[EMAIL PROTECTED]> wrote:
Jeff Ambrosino wrote:> I'm running a mod_perl cleanup handler from a reverse proxy> ($r->pool->cleanup_register), and> I need to know the total # of bytes sent in a response so I can store this
> info in a datab
Jeff Ambrosino wrote:
> I'm running a mod_perl cleanup handler from a reverse proxy
> ($r->pool->cleanup_register), and
> I need to know the total # of bytes sent in a response so I can store this
> info in a database.
> A real-world example would be the end user (browser) streaming a Quicktime
I'm running a mod_perl cleanup handler from a reverse proxy ($r->pool->cleanup_register), and
I need to know the total # of bytes sent in a response so I can store this info in a database.
A real-world example would be the end user (browser) streaming a Quicktime movie, and I want
to know how long
Also, as long as you're using CGI.pm, you should use it to generate your HTML
output. Your script should probably look like this:
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
print
header(),
p('hello world'),
;
sleep 2;
print
p('testing'),
end_html(),
;
That'll ge
Do you have mod_deflate active in your output chain? mod_deflate slurps up
all its input and only prints when its buffer gets full.
On Thursday 01 September 2005 07:52 am, pradeep kumar wrote:
> Hi,
>
> I have a perl script which uses $| to set autoflush on. Basically, it
> flushes after every p
Hi,
I have a perl script which uses $| to set autoflush on.
Basically, it flushes after every print. This script is working fine
from the command line when run using standalone perl interpreter. But
when the same script is accessed via mod_perl/apache setup, mod_perl is
not flushing after every p
20 matches
Mail list logo