test

2008-09-17 Thread yong feng
test

Re: Problem setting POST_MAX

2008-09-17 Thread Ryan Gies
On Wed, 17 Sep 2008 12:07:24 +0200 Rolf wrote: > So I have to change this in the source to get a vlaue above 64M? :-( According to the documentation you can specify the limit in the Apache configuration, i.e., APREQ2_ReadLimit 100M I have not had success setting this directive. Nor does th

Re: Problem setting POST_MAX

2008-09-17 Thread Rolf Schaufelberger
Hi Lee, > Hello Rolf, > > I think your code below might have a slight bug, I think you need to have > have the POST_MAX as a parameter to the 'new'. > > e.g. > > $ah->request_args( Apache2::Request->new( $r, POST_MAX => ( 200 << 20 ) ) > ); > > Instead of the call below: > > $ah->request_args( Ap

Re: Problem setting POST_MAX

2008-09-17 Thread Lee Carmichael
Hello Rolf, I think your code below might have a slight bug, I think you need to have have the POST_MAX as a parameter to the 'new'. e.g. $ah->request_args( Apache2::Request->new( $r, POST_MAX => ( 200 << 20 ) ) ); Instead of the call below: $ah->request_args( Apache2::Request->new($r), POST

Re: Why load two modules to call methods on the same object?

2008-09-17 Thread Perrin Harkins
On Tue, Sep 16, 2008 at 11:00 PM, Himanshu <[EMAIL PROTECTED]> wrote: > For the following to work I must load Apache2RequestRec as well as > Apache2::RequestIO. The idea is that you don't load what you don't need, which reduces memory consumption, which is the bottleneck on most mod_perl applicati

[MP2]: Apache::FakeRequest for mod_perl 2

2008-09-17 Thread titetluc titetluc
Hello all, I am working in a mod_perl2 environment. I would like to use an equivalent of Apache::FakeRequest. Where can I find such a module ? Thanks

Re: Problem setting POST_MAX

2008-09-17 Thread Rolf Schaufelberger
Am Mittwoch, 17. September 2008 10:46:40 schrieb Ryan Gies: > On Wed, 17 Sep 2008 10:37:07 +0200 > > Rolf wrote: > > when I try to set POST_MAX to a higher value I get > > > > Conflicting information. > > > > I've also tried to set it via read_limit() with the same result. > > What's wrong ? > > T

Re: How to pass the post data to a script

2008-09-17 Thread André Warnier
grsvarma019 wrote: Hi, I am using mod_perl2 for authentication. That is not very specific, but I suppose that you mean that you are writing your own mod_perl authentication module ? In this, when a request is made to a script in a particular directory, the control will go through mod_perl aut

Re: Problem setting POST_MAX

2008-09-17 Thread Ryan Gies
On Wed, 17 Sep 2008 10:37:07 +0200 Rolf wrote: > when I try to set POST_MAX to a higher value I get > > Conflicting information. > > I've also tried to set it via read_limit() with the same result. > What's wrong ? The best explanation I've found is Philip's: http://www.mail-archive.com/

Re: How to pass the post data to a script

2008-09-17 Thread Torsten Foertsch
On Wed 17 Sep 2008, grsvarma019 wrote: > If the requested script of an application needs POST data, that data > is not being sent to the requested script ,but instead it is being > captured by apache request object of the mod_perl. > > How can i pass this data to the requested script? First, see i

Problem setting POST_MAX

2008-09-17 Thread Rolf Schaufelberger
Hi, when I try to set POST_MAX to a higher value I get Conflicting information. I've a mod_perl / Mason app with an own hander, starting with (mod_perl2) sub handler () :method { my $class = shift; my $r = shift; my ($app, $return); my $args = $ah->request_args( Apache

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Torsten Foertsch
On Wed 17 Sep 2008, John ORourke wrote: > I had the same problem but the machine serving the request had a > reverse proxy in front of it.  I used the following to inject a > header on the proxy: > >         SetEnv SCHEME http >         RewriteCond %{HTTPS} on >         RewriteRule ^(.*) $1 [E=SCHE

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread John ORourke
Torsten Foertsch wrote: On Wed 17 Sep 2008, grsvarma019 wrote: But , i couldn't find how to extract the protocol(http or https ) There are Apache2::ModSSL and Apache::SSLLookup on CPAN in case you need that information in a request phase prior to the ResponseHandler. I had the sam

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Torsten Foertsch
On Wed 17 Sep 2008, grsvarma019 wrote: > But , i couldn't find how to extract the protocol(http or https ) There are Apache2::ModSSL and Apache::SSLLookup on CPAN in case you need that information in a request phase prior to the ResponseHandler. Mod_ssl can be configured to export SSL informatio

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Ryan Gies
On Wed, 17 Sep 2008 00:21:52 -0700 (PDT) grsvarma019 wrote: > But , i couldn't find how to extract the protocol(http or https ) > from the current URL using apache request object. > Can you please anybody help me in this? See: perldoc Apache2::RequestRec # HTTP protocol version number $pr

How to pass the post data to a script

2008-09-17 Thread grsvarma019
Hi, I am using mod_perl2 for authentication. In this, when a request is made to a script in a particular directory, the control will go through mod_perl authentication. Once mod_perl returns OK as a result, we could get to the original script that we requested. The real problem here is: If the

How to extract the protocol part of URL from an apache request

2008-09-17 Thread grsvarma019
Hi, I am using mod_perl for authentication. I could able to extract the Host and path information of the currect URL using apache request object. like $apache->header_in(Host) and $apache->uri respectively. But , i couldn't find how to extract the protocol(http or https ) from the current URL