Bug in documentation of Apache2::Connection

2015-02-10 Thread Reif Peter
IMHO there is a bug in the docs: http://perl.apache.org/docs/2.0/api/Apache2/Connection.html#C_get_remote_host_ $remote_host = $c->remote_host(); $remote_host = $c->remote_host($type); $remote_host = $c->remote_host($type, $dir_config); It should be get_remote_host() instead of remote_host

seen_eos is not set by some handlers

2006-06-12 Thread Reif Peter
I use a PerlOutputFilter in my Apache. It seems that some response-handlers don't set the $f->seen_eos field. It works for local HTML-pages and the "server-status" handler. It doesn't work for Pages that come through the standard-proxy-module, the standard PerlResponseHander Apache2::Status and th

seen_eos is not set by some handlers

2006-06-13 Thread Reif Peter
I use a PerlOutputFilter in my Apache. It seems that some response-handlers don't set the $f->seen_eos field. It works for local HTML-pages and the "server-status" handler. It doesn't work for Pages that come through the standard-proxy-module, the standard PerlResponseHander Apache2::Status and th

test

2006-06-13 Thread Reif Peter
sorry for the test, but my posts are not coming through

Re: seen_eos is not set by some handlers

2006-06-14 Thread Reif Peter
I don't know what went wrong, but now it works! Peter

response headers vom proxy request in filter available?

2006-06-14 Thread Reif Peter
I have an Apache server configured as reverse-proxy and want to see the response-headers of the proxy request in my output-filter. Wher I try to read $r->headers_out I get only the "Date" header. Do I have to implement my filter as a connection-filter or is there another solution? Peter

Q: Don't filter requests from server side includes

2006-08-01 Thread Reif Peter
How do I configure my server, so that it does not I have ssi enabled on my web server. I also have a content filter in mod_perl: PerlOutputFilterHandler Apache::MyFilter How do I configure the server that it does not send requests made by

$r->read doesn't return number of characters read

2007-06-11 Thread Reif Peter
1. Problem Description: I have written a mod_perl request handler. It reads incoming POST-date with: sub handler { my $r = shift; # ... my $cnt = $r->read($buf, $bufsize); # ... } the documentation says (http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#

Reading post-data

2007-06-11 Thread Reif Peter
In http://perl.apache.org/docs/2.0/user/porting/compat.html I read: if one wishes to simply read POST data, there is the more modern filter API, along with continued support for read(STDIN, ...) and $r->read($buf, $r->headers_in->{'content-length'}) But there are two problems with $r->read($buf,

Wrong error message at $r->read (.. , 0)

2007-06-11 Thread Reif Peter
1. Problem Description: I have written a mod_perl request handler. It reads incoming POST-date with: sub handler { my $r = shift; # ... my $cnt = $r->read($buf, 0); # ... } My hope is, that when I use 0 as length parameter to read, it will read everything. But it

Input Filter Problem

2007-06-11 Thread Reif Peter
I have a problem with a filter and a content handler: httpd.conf: ... PerlInputFilterHandler Apache::Filter1 PerlResponseHandler Apache::TestPost ... --%< - Apache::Filter1.pm: package Apache::Filter1; use strict; use Apache2

AW: Reading post-data

2007-06-11 Thread Reif Peter
> Reif Peter wrote: > > Unfortunately you cannot tell $r->read to read just all of > the data, you > > must provide a length. > > > > How do I solve this problems. > > $r->read will return 0 when no more data is available. I have > been using >

Re: Reading post-data

2007-06-19 Thread Reif Peter
> Reif Peter wrote: > > Unfortunately you cannot tell $r->read to read just all of > the data, you > > must provide a length. > > > > How do I solve this problems. > > $r->read will return 0 when no more data is available. I have > been using >

AW: Reading post-data

2007-06-20 Thread Reif Peter
> > Yes, this code works and I am using it, too. But the > documentation says, > > you can use > >$r->read($buf, $r->headers_in->{'content-length'} > > this statement reads the entire request content in one iteration by > using a read buffer size equal to the content-length of the request. >