None of these
$r-err_headers_out-set('Etag' = -1);
$r-err_headers_out-set('etag' = -1);
$r-err_headers_out-set('no-etag' = 1);
$r-notes-set('no-etag' = 1);
actually works. Phase where this module runs is PerlHeaderParserHandler, which
is needed
for its DIRECTORY scope.
Curiously, with Apache2::Response that proportionates the $r-set_etag();
method,
apparently the ETAG value is no more sended, however, the problem persists:
http://localhost/camandules.info/
GET /camandules.info/ HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
Hi there, i'm just changing the web pages served with my
mp2+libapreq2+mod_xslt2, and to
inform that these pages has been modified i was used to use the
$r-err_headers_out method
to avoid any caching procedure.
However, something is not working since the HTTP server is responding a 304 not
Searching for some clue of simultaneous static compilation of apache+mp2+apreq2
i have
only found this 2005-march entry in mailinglists.
Has anyone managed to compile a static (no DSO) apache with mod_perl and
libapreq? Both mod_perl and libapreq have instructions for building them
I used a function to manually change some html not-xml-allowed into the
correspondent
correct codification.
Now i've tried to use the HTML::Entities cpan module.
This is what i had (some ugly regex)
foreach (2..14) {$data-{$p} =~ s/$cri-[$_]/$rel-[$_]/g;}
This is what i've tried
use
Apparently i was not including the eos bucket in the new brigade.
It seems to work:
if ($b-is_eos) {
$this-my_function(\$f-ctx-{html},$f-r,$f-c);
#new bucket brigade to be filled with final modified bucket
my $nbb = APR::Brigade-new($f-c-pool,$f-c-bucket_alloc);
#new bucket, a unique and big
I'm just changing my old handler:FilterRequestHandler in
PerlOutputFilterHandler as it
is not working with my newfreshmp2 compilation.
Then there's the question. What i want is to parse html pageswith an output
filter that
take special tags (%special%)and insert there some specific content.
With the reading of Apache_Clean module (which i see is streamed-oriented) and
with ideas
of Ambrosino, i am with this:
sub handler : FilterRequestHandler {
my($f, $bb) = @_;
my $rv;
unless ($f-ctx) {
$f-r-headers_out-unset('Content-Length');
$f-ctx({html = ''});
}
while (!$bb-is_empty) {
/libapreq2-2.06-dev/glue'
make: *** [install-recursive] Error 1
Any idea? Thanks for your responses!
eps com estem wrote:
Hi, in the procedure to compile new apache+modperl2+apreq2 i'm finding
problems with apreq2 compilation.
perl 5.87
apache 2.0.55
modperl 2.01
ExtUtils-XSBuilder-0.27
Ok, you are right. A huge monkey is the cause that i didn't make make
install the
modperl module o_O
Done! I've had to compile also Parse-RecDescent cause apreq claimed it didn't
found.
Now apparently everything has gone right. Thanks!
eps com estem wrote:
I've recompile everything
Hi, in the procedure to compile new apache+modperl2+apreq2 i'm finding
problems with apreq2 compilation.
perl 5.87
apache 2.0.55
modperl 2.01
ExtUtils-XSBuilder-0.27
libapreq2-2.06-dev
The commands i do
#perl
/Configure -des -Dusethreads
make
make install
#apache
/configure
I have compiled apache2+mp2+libapreq2 in a linux box (ubuntu). Running the same
code that
worked in windows (see the thread) i see that it is failing (upload() method).
In the past
libapreq2 version (libapreq2 2.04-dev) was corrected with two bugs that made it
run
smoothly. This changes were
I was just doing the validation of my new program version when I have tried the
next
(simplified) code with firefox 0.92 which receives text and one image-upload
through a
formulary written correctly.
With Firefox all has run perfectly, then i've tested on internet explorer 6.0
and oh
surprise
Here's a patch for $upload-slurp, see if it helps:
Fast work, as always, Joe :) These patches I've incorporated
in a new libapreq2.ppd ppm package at
a
href=/app/message?l=eso=8url=http%3A%2F%2Ftheoryx5%2Euwinnipeg%2Eca%2Fppms%2F
target=_blankhttp://theoryx5.uwinnipeg.ca/ppms//a
The version
://theoryx5.uwinnipeg.ca/ppms/libapreq2.ppd
Now it is installing, version 2.04-dev installed
I remove all and reinstall only the last versions:
properties:
mod_perl-dev 2.0.0-RC2
libapreq2 2.04-dev
-
eps com estem a
href=javascript:sendMsg('[EMAIL PROTECTED]');[EMAIL
Randy
For ActivePerl builds 8xx (which mp2 requires on Win32), the
repository should be
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58
The :/PPMServer repository is for builds 6xx, which is why
you didn't find mod_perl 2.
Ok, that should be corrected in
Hey
I've found the problem, following your advices.
So $upload('eps') works always.
But $upload() only works when the file input is the first input of the form.
If text input is before file input, upload() catch nothing, but upload('eps')
does the job.
Hope this helps.
-- eps
++ gerard
Could you check please if the slurp function doesn't allow to put the content
into
non-scalar values???
I'll explain better
$upload-slurp(my $temp);
$temp contents the data
my $info = {};
$upload-slurp($info-{eii});
$info-{eii} contains nothing.
This is the same that happened
for me.
Thanks.
---
eps com estem a
href=javascript:sendMsg('[EMAIL PROTECTED]');[EMAIL PROTECTED]/a
writes:
[...]
1)- First thing is that if i am creating a new bucket for a new
brigade, the line
my $b = APR::Bucket-new($bb-bucket_alloc,$data
I'm trying to use libapreq2 to upload files to the server.
If i'm not wrong not all methods are available from all filters, but i've had
poor
results trying to guess which phases allow what methods.
My program executes all the modules (except the SSI filtering) in the URI phase
for.
---
eps com estem a
href=javascript:sendMsg('[EMAIL PROTECTED]');[EMAIL PROTECTED]/a
writes:
if ($apache-content_type() eq 'multipart/form-data') {
No. $r-content_type() represents the response (outgoing) header,
not the request (incoming) header
Hello.
I want to add file-upload capacity to my program so i've installed libapreq2.
Working with windows i've installed libapreq2 through ppm which install as a
requisite
mod_perl-dev 1.99_15, and
after i've installed 1.99_0.17 (the order is important, as version _17 is
needed for some
I've tested this another option:
--
sub handler : FilterRequestHandler
{
my($f, $bb) = @_;
$bb-flatten(my $data);
$bb-cleanup();
$this-blogum_filter(\$data,$f-r,$f-c);
my $bb_ctx = APR::Brigade-new($f-c-pool, $f-c-bucket_alloc);
my $b =
This is not a technical question, but now that more-than-600MHz PDA are just attacking
our
wallets it is curious to know if there is any plan to port both apache and modperl to
palmOs / pocketPc machines.
Since i was running my linux+apache2+mp2 in an old pentium at 266MHz with no kind of
help and this solution.
Thanks a lot :D
eps com estem wrote:
Hi.
I want to redirect to some uri one page. This can be accomplished easily in
PerlTransHandler with $r- uri($new_uri);
My problem is that this uri needs to be parsed again with the same module
responsible of
that. This is, i
When you modify the URL at the appropiate phase, the URL displayed is not changed
(which
is neither good nor bad).
To change the url you can do
$r-header_out(Location = $url);
return Apache::Constants::REDIRECT;
where you redirect the browser directly to another URL, and indeed the browser
Hi.
I used to read POST data with the sentence
read (STDIN,$var,$r_headers-{'Content-length'});
When the handler was invoked after submitting the formulary.
But, lately i changed the handler configured in apache.conf by a parsing URI module.
There
i catch the direction of the form submit and
of windows-problem.
Using directly a string it works, thanks!
eps com estem wrote:
Hi.
I used to read POST data with the sentence
read (STDIN,$var,$r_headers-{'Content-length'});
When the handler was invoked after submitting the formulary.
But, lately i changed the handler configured in apache.conf
28 matches
Mail list logo