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
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
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
sorry for the test, but my posts are not coming through
I don't know what went wrong, but now it works!
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
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
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#
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,
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
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
> 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
>
> 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
>
> > 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.
>
14 matches
Mail list logo