Re: ETAG err_header_out

2005-11-08 Thread eps com estem
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.

Re: ETAG err_header_out

2005-11-08 Thread eps com estem
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;

ETAG err_header_out

2005-11-07 Thread eps com estem
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

Re: static apache+mod_perl+libapreq (update docs?)

2005-10-24 Thread eps com estem
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

HTML::Entities with libapreq2

2005-10-22 Thread eps com estem
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

Re: bucketbrigades with html filter

2005-10-20 Thread eps com estem
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

bucketbrigades with html filter

2005-10-18 Thread eps com estem
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.

Re: bucketbrigades with html filter

2005-10-18 Thread eps com estem
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) {

Re: libapreq2-2.06-dev MM.pm compile problems

2005-10-16 Thread eps com estem
/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

Re: libapreq2-2.06-dev MM.pm compile problems

2005-10-16 Thread eps com estem
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

libapreq2-2.06-dev MM.pm compile problems

2005-10-15 Thread eps com estem
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

Re: libapreq2 upload question

2005-02-20 Thread eps com estem
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

Re: libapreq2 upload question

2005-01-05 Thread eps com estem
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

Re: libapreq2 upload question

2004-12-21 Thread eps com estem
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

Re: libapreq2 upload question

2004-12-20 Thread eps com estem
://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

Re: libapreq2 upload question

2004-12-20 Thread eps com estem
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

Re: libapreq2 upload question

2004-12-20 Thread eps com estem
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.

Re: libapreq2 upload question

2004-12-20 Thread eps com estem
-- 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

Re: Re: $bb,$b, PerlOutputFilterHandler and $rv = $f-pass_brigade($bb);

2004-12-19 Thread eps com estem
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

libapreq2 upload question

2004-12-19 Thread eps com estem
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

Re: Re: libapreq2 upload question

2004-12-19 Thread eps com estem
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

$bb,$b, PerlOutputFilterHandler and $rv = $f-pass_brigade($bb);

2004-12-18 Thread eps com estem
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

Re: $bb,$b, PerlOutputFilterHandler and $rv = $f-pass_brigade($bb);

2004-12-18 Thread eps com estem
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 =

apache and mod_perl in pdas?

2004-10-15 Thread eps com estem
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

Re: Re: PerlTransHandler, Location

2004-09-08 Thread eps com estem
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

modifying URL displaying

2004-07-12 Thread eps com estem
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

reading POST data problem

2004-07-11 Thread eps com estem
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

Re: reading POST data problem

2004-07-11 Thread eps com estem
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