I'm having a problem with an
>> input filter. The error I get is as per the subject line.
>>
>> Here's the code:
>>
>> apache config
>>
>> Perlrequire /opt/code/scripts/apache2-perl-startup.pl
>> ...
>> PerlOutputFilterHandler ZCRM
fig
>
> Perlrequire /opt/code/scripts/apache2-perl-startup.pl
> ...
> PerlOutputFilterHandler ZCRM::OFilter::output
> PerlInputFilterHandler ZCRM::OFilter::input
>
> And here's the perl code (output filter works fine, but the input filter
> results in the error below)
;s the perl code (output filter works fine, but the input filter
> results in the error below)
>
> package ZCRM::OFilter;
>
> use strict;
> use warnings;
>
> use Apache2::Filter ();
> use Apache2::RequestRec ();
> use Apache2::Const -compile => qw(OK DE
rl-startup.pl
> ...
> PerlOutputFilterHandler ZCRM::OFilter::output
> PerlInputFilterHandler ZCRM::OFilter::input
>
> And here's the perl code (output filter works fine, but the input filter
> results in the error below)
>
> package ZCRM::OFilter;
>
> use strict;
>
che2-perl-startup.pl
...
PerlOutputFilterHandler ZCRM::OFilter::output
PerlInputFilterHandler ZCRM::OFilter::input
And here's the perl code (output filter works fine, but the input
filter results in the error below)
package ZCRM::OFilter;
use strict;
use warnings;
use Apache2::Filter ()
tml#Output_Filters). I
have this
so far :
package MyFilter;
...
use base qw(Apache2::Filter);
...
use constant BUFF_LEN => 4096;
sub handler : FilterRequestHandler {
my $f = shift;
my $content = '';
while ($f->read(my $buffer, BUFF_LEN)) {
$content .= $buffer;
ache2 request filter.
According to the online tutorial
(http://perl.apache.org/docs/2.0/user/handlers/filters.html#Output_Filters).
I have this so far :
package MyFilter;
...
use base qw(Apache2::Filter);
...
use constant BUFF_LEN => 4096;
sub handler : FilterRequestHandler {
my $f
(posted with wrond id, re-posting)
On Thu, 1 Oct 2015 19:59:34 +0200
"A. Warnier" wrote:
>
> sub handler : FilterRequestHandler {
>
> What I am missing ?
>
I get the same error when I add ': FilterRequestHandler'.
Using just 'sub handler {' instead works
FilterRequestHandler is assumed wh
Hi.
I am trying to write an Apache2 request filter.
According to the online tutorial
(http://perl.apache.org/docs/2.0/user/handlers/filters.html#Output_Filters). I have this
so far :
package MyFilter;
...
use base qw(Apache2::Filter);
...
use constant BUFF_LEN => 4096;
sub hand
Hello mod_perl-ers,
I'm seeing a fair amount of these in my apache error log:
Apache2::Filter internal flush: (-3) Unknown error 4294967293 at -e line 0
I'm running apache 2.2.29, mod_perl 2.0.8 on linux.
Looking at the source code, it looks like I'm getting into this els
Hello mod_perl-ers,
I'm seeing a fair amount of these in my apache error log:
Apache2::Filter internal flush: (-3) Unknown error 4294967293 at -e line 0
I'm running apache 2.2.29, mod_perl 2.0.8 on linux.
Looking at the source code, it looks like I'm getting into this els
I wrote a module based on a talk Geoff Young gave a bazillion years ago
to abstract this problem away (sort of). You can check it out here:
http://search.cpan.org/~aprime/Apache2-Filter-TagAware-0.02/lib/Apache2/Filter/TagAware.pm
Adam
On 3/31/2011 12:30 AM, Chris Datfung wrote:
On Wed, Mar
On Thursday, March 31, 2011 12:08:03 Chris Datfung wrote:
> y string is always within the first 5000 bytes, but setting BUFF_LEN to
> 8000 did not help as the buffer still sometimes gets cut after ~2500 bytes
> or so. Do you know of any way to force the bucket to be a certain length?
To my knowled
>> >> with "dy>"). I had to buffer the last bytes of each response part and
>> >> take
>> >> them into account
>> >
>> >
>> > Hi Hendrik,
>> >
>> > That is exactly the problem. How did you buffer the last byt
had to buffer the last bytes of each response part and
> >> take
> >> them into account
> >
> >
> > Hi Hendrik,
> >
> > That is exactly the problem. How did you buffer the last bytes of each
> > response. Don't you just set the BUFF_LEN
fer the last bytes of each response part and
>> take
>> them into account
>
>
> Hi Hendrik,
>
> That is exactly the problem. How did you buffer the last bytes of each
> response. Don't you just set the BUFF_LEN and thats the number of
> characters
> you get?
>
On Wed, Mar 30, 2011 at 12:36 PM, Hendrik Schumacher wrote:
> Am Mi, 30.03.2011, 12:17 schrieb Chris Datfung:
>
> I had a similar problem with a http proxy that injected a string into the
> HTML body. If the response is passed to the filter in multiple parts there
> is a certain probability that t
Am Mi, 30.03.2011, 12:17 schrieb Chris Datfung:
> I have a script that uses Apache2::Filter to filter the server response
> output and inject a string into the HTML body. The script normally works
> fine expect intermittently the output is missing the injected string. This
> happens a
I have a script that uses Apache2::Filter to filter the server response
output and inject a string into the HTML body. The script normally works
fine expect intermittently the output is missing the injected string. This
happens around 10% of the time. I verified that there is enough memory and
CPU
The uploaded file
Apache2-Filter-TagAware-0.01.tar.gz
has entered CPAN as
file: $CPAN/authors/id/A/AP/APRIME/Apache2-Filter-TagAware-0.01.tar.gz
size: 9124 bytes
md5: dbf01588e4030b70d449654fb98deed8
Nearly a year after this thread:
http://marc.info/?l=apache-modperl&a
I've just rolled new 1.03 releases of both:
Apache2::Filter::Minifier::CSS
Apache2::Filter::Minifier::JavaScript
Changes since previous release:
- Fixed "Content-Type" filtering so that it now properly handles cases where
the C-T header may have additional
Should fix up issues that CPAN Testers had with the 1.00 release...
-- Forwarded Message --
The uploaded file
Apache2-Filter-Minifier-JavaScript-1.01.tar.gz
has entered CPAN as
file:
$CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-JavaScript-1.01.tar.g
z size
Should fix up issues that CPAN Testers had with the 1.00 release.
-- Forwarded Message --
The uploaded file
Apache2-Filter-Minifier-CSS-1.01.tar.gz
has entered CPAN as
file:
$CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-CSS-1.01.tar.gz size:
5235 bytes
The uploaded file
Apache2-Filter-Minifier-CSS-1.00.tar.gz
has entered CPAN as
file: $CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-CSS-1.00.tar.gz
size: 5129 bytes
md5: d0552123e7b3f4d5d1ff9b8fe482c893
Please allow time for the file to mirror across CPAN...
Apache2::Filter
The uploaded file
Apache2-Filter-Minifier-JavaScript-1.00.tar.gz
has entered CPAN as
file:
$CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-JavaScript-1.00.tar.gz
size: 5186 bytes
md5: 514ca279df6b96e6bfee6f4e0d36a9e7
Please allow time for the file to mirror across CPAN
Graham TerMarsch wrote:
> On Thursday 20 September 2007 6:45 am, Geoffrey Young wrote:
>> Graham TerMarsch wrote:
>>> I've been working on some projects needing JS minification recently and
>>> wanted to ping others and find out if anyone else would find it useful to
>>> have a mod_perl2 filter t
On Thursday 20 September 2007 6:45 am, Geoffrey Young wrote:
> Graham TerMarsch wrote:
> > I've been working on some projects needing JS minification recently and
> > wanted to ping others and find out if anyone else would find it useful to
> > have a mod_perl2 filter that auto-minified your JS (us
Graham TerMarsch wrote:
> I've been working on some projects needing JS minification recently and
> wanted
> to ping others and find out if anyone else would find it useful to have a
> mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...
see also
http://search.cpan.o
filter that auto-minified your JS (using
> > JavaScript::Minifier)...
> >
> > Am thinking along the lines of something that you'd set up in your Apache
> > config like:
> >
> >
> > PerlOutputFilterHandler Apache2::Filter::Minifier::Java
On Wed, 2007-09-19 at 10:24 -0700, Graham TerMarsch wrote:
> I've been working on some projects needing JS minification recently and
> wanted
> to ping others and find out if anyone else would find it useful to have a
> mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...
Graham TerMarsch wrote:
> I've been working on some projects needing JS minification recently and
> wanted
> to ping others and find out if anyone else would find it useful to have a
> mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...
> [...]
>
> Seeing the above makes
hinking along the lines of something that you'd set up in your Apache
> config like:
>
>
> PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript
> PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir
>
>
> Results w
If there is anything I can do to help let me know. I'd really like
to have a small footprint
on my JS output, right now its still pretty big.
Boysenberry Payne
Habitat Life, Inc.
http://www.habitatlife.com/
On Sep 19, 2007, at 12:49 PM, Graham TerMarsch wrote:
On Wednesday 19 September 2007
On Wednesday 19 September 2007 10:51 am, John Saylor wrote:
> > -Original Message-
> > From: Graham TerMarsch [mailto:[EMAIL PROTECTED]
> >
> > [deletions]
> >
> > I've been working on some projects needing JS minification recently and
> > wanted to ping others and find out if anyone else w
ur JS (using
JavaScript::Minifier)...
Also thinking that an Apache2::Filter::Minifier::CSS module would be
possible using CSS::Minifier; basically same thing but for CSS instead.
i'm not so familiar with how the minifiers work, but in javascript, if
it changes function or object names, an
On Wednesday 19 September 2007 10:40 am, Boysenberry Payne wrote:
> I could use something like this. Right now I use Toolkit Template to
> build from.
> It already caches the JS file loaded from disk. I would want to then
> put it through
> the minifier process and cache then serve. Would you mo
that you'd set up in your
Apache
config like:
PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript
PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir
Results would be cached to disk, so that we didn't have to re-
minify
up in your Apache
config like:
PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript
PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir
Results would be cached to disk, so that we didn't have to re-minify the JS
files on each an
Adam Prime x443 wrote:
> I didn't get any response at all to this, though maybe a half a dozen
> people actually looked at the code. Being completely unfamaliar with
> the process of contributing code to the community, i'm not sure if this
> is what I should have expected or not.
it depends on
Adam Prime x443 wrote:
> I didn't get any response at all to this, though maybe a half a dozen
> people actually looked at the code. Being completely unfamaliar with
> the process of contributing code to the community, i'm not sure if this
> is what I should have expected or not.
Depends. In m
t: Sunday, November 12, 2006 12:09 AM
> To: modperl@perl.apache.org
> Subject: [RFC] Apache2::Filter::TagAware
>
> At ApacheCon this year Geoff gave a talk about Output filters
> (slides:
> http://www.modperlcookbook.org/~geoff/slides/ApacheCon/2006/mp
> 2_filters-printable
the body of
the page the metrics were about. This kind of filter too would have to handle
the split tags problem.
So it occurred to me that this might well be handled by subclassing
Apache2::Filter and making the subclass handle it. So after a bunch of
screwing around I finally got a pretty
The uploaded file
Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz
has entered CPAN as
file:
$CPAN/authors/id/P/PG/PGOLLUCCI/Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz
size: 7748 bytes
md5: 253f4df9d395dbb4735c0708aa809968
No action is required on your part
Request entered by: PGOLLUCCI
43 matches
Mail list logo