write handler for apache http request

This is a multi-part message in MIME format.
--------------060903090400030708060302
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,
I want to write an handler in perl to manage the |PerlPostConfigHandler|
<http://perl.apache.org/docs/2.0/user/handlers/server.html#toc_C_PerlPostConfigHandler_>,
but i don't know how to do this.
Can someone help me?

||
<http://perl.apache.org/docs/2.0/user/handlers/server.html#toc_C_PerlPostConfigHandler_>||
<http://perl.apache.org/docs/2.0/user/handlers/server.html#toc_C_PerlPostConfigHandler_>


--------------060903090400030708060302
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
I want to write an handler in perl to manage the <a
href="http://perl.apache.org/docs/2.0/user/handlers/server.h tml#toc_C_PerlPostConfigHandler_"><code>PerlPostConfigHandler</code></a>,
but i don't know how to do this.<br>
Can someone help me?<br>
<br>
<a
href="http://perl.apache.org/docs/2.0/user/handlers/server.h tml#toc_C_PerlPostConfigHandler_"><code>
</code></a><a
href="http://perl.apache.org/docs/2.0/user/handlers/server.h tml#toc_C_PerlPostConfigHandler_"><code></code></a>
</body>
</html>

--------------060903090400030708060302--
Marco [ Di, 17 Mai 2011 17:36 ] [ ID #2059579 ]

Re: write handler for apache http request

marco wrote:
> Hi all,
> I want to write an handler in perl to manage the |PerlPostConfigHandler|
> <http://perl.apache.org/docs/2.0/user/handlers/server.html#toc_C_PerlPostConfigHandler_>,
> but i don't know how to do this.
> Can someone help me?
>
So what is wrong with the example section of
http://perl.apache.org/docs/2.0/user/handlers/server.html#C_ PerlPostConfigHandler_
?

Maybe your question was not phrased very well.

What do you want to do/achieve with this ?
Or what is the part you are missing ?
aw [ Di, 17 Mai 2011 18:37 ] [ ID #2059580 ]

Re: write handler for apache http request

Il 17/05/2011 18.37, André Warnier ha scritto:
> marco wrote:
>> Hi all,
>> I want to write an handler in perl to manage the
>> |PerlPostConfigHandler|
>> <http://perl.apache.org/docs/2.0/user/handlers/server.html#toc_C_PerlPostConfigHandler_>,
>> but i don't know how to do this.
>> Can someone help me?
>>
> So what is wrong with the example section of
> http://perl.apache.org/docs/2.0/user/handlers/server.html#C_ PerlPostConfigHandler_
>
> ?
>
> Maybe your question was not phrased very well.
>
> What do you want to do/achieve with this ?
> Or what is the part you are missing ?
>
Sorry, I did explain not very well.
I tell you my problem. I want to write a simple perl handler that must
be executed only in the post-read-request phase of http request cycle.
So the module must be a PerlPostConfigHandler.
I never worked with this and I don't know how to start do this.
How can I load this module on apache?
How can I write this module if, for example, I want to "write a file"
when this handler is invoked?

Thanks
Marco [ Di, 17 Mai 2011 18:45 ] [ ID #2059581 ]

Re: write handler for apache http request

> Il 17/05/2011 18.37, Andr=E9 Warnier ha scritto:
[sNip]
> > So what is wrong with the example section of
> > http://perl.apache.org/docs/2.0/user/handlers/server.html#C_ PerlPostCo=
nfigHandler_
[sNip]
> Sorry, I did explain not very well.
> I tell you my problem. I want to write a simple perl handler that must
> be executed only in the post-read-request phase of http request cycle.
> So the module must be a PerlPostConfigHandler.
> I never worked with this and I don't know how to start do this.
> How can I load this module on apache?
> How can I write this module if, for example, I want to "write a file"
> when this handler is invoked?
>
> Thanks

You probably want this handler:

PerlPostReadRequestHandler

http://perl.apache.org/docs/2.0/user/handlers/http.html#Perl PostReadRe
questHandler

There's a code example included on that web page, and then in
httpd.conf you'll need to specify your source code file with the
PerlPostReadRequestHandler configuration directive.

Randolf Richardson - randolf [at] inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.inter-corporate.com
Randolf Richardson [ Di, 17 Mai 2011 19:21 ] [ ID #2059582 ]
Webserver » gmane.comp.apache.mod-perl » write handler for apache http request

Vorheriges Thema: Ubuntu and mod_perl
Nächstes Thema: How to tell GET from POST method ni CGI.pm?