Hi,
I am about to modify Apache with some custom logging for GET/POST
requests (and more). It is for the purpose of research. If possible, I
would like to get some guidance in how to implement my ideas. I will
explain...
Every GET/POST request to Apache will carry a request identifier.
Adding the
> Can all this be done in an Apache module?
Yes, just about anything can be done in an
Apache module. Based on your other questions,
it sounds like you need a thorough exposition
of the Apache API and probably the HTTP protocol,
so I'd suggets your next step is to study some
good documenta
On Fri, Sep 5, 2008 at 05:11, Andrej van der Zee
<[EMAIL PROTECTED]> wrote:
> 2) I do need to "attach" to the thread/process handling the request to
> extract information just after starting and just before ending. Can I
> do this in an Apache module? I found the ap_hook_child_init() function
> but
Thanks for your comments.
Until I get the book, can you tell if a module's hook function can
execute in the same thread as the CGI application that serves the
request?
Also, I am unable to find the apache2 API for building modules. I
found some documentation for developers on the apache2 website,
Hi,
Thanks for your comments.
>
> child_init is not the appropriate hook for your purpose. Use
> ap_hook_fixups for getting the ID and ap_hook_log_transaction for
> logging.
In ap_hook_fixups, is it possible to get the thread/process ID of the
CGI application serving the request? Moreover, is th
On Fri, Sep 5, 2008 at 11:19, Andrej van der Zee
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for your comments.
>
>>
>> child_init is not the appropriate hook for your purpose. Use
>> ap_hook_fixups for getting the ID and ap_hook_log_transaction for
>> logging.
>
> In ap_hook_fixups, is it possible
Hi,
>
> A CGI script is run by the code of a module, mod_perl, mod_php5, etc.
> In their register_hooks function they register their handler, which is
> a script interpreter basically. The handler callback is invoked in the
> same thread that did the rest of the request processing (URL parsing,
>
Andrej van der Zee wrote:
> Does anybody know if the hook functions of such modules usually
> spawning a new thread/process? My guess is that at least for compiled
> CGI application written in C/C++ a new process is forked in the hook
> function.
>
This is just off the top of my head, so I have
On Fri, 2008-09-05 at 18:49 +0900, Andrej van der Zee wrote:
> Hi,
>
> >
> > A CGI script is run by the code of a module, mod_perl, mod_php5, etc.
> > In their register_hooks function they register their handler, which is
> > a script interpreter basically. The handler callback is invoked in the
>
As another poster said, a standard CGI
script runs in a different processes and you
can't generally muck with the address space
of that process. To effect that script, what
you can do is change it's inputs and it's
outputs. Your module can add, remove, or
alter the query string, path inf
Hi,
> > 1) What is the "recommended" way to carry the
> > GET/POST request identifier (inserted by the
> > developer of the web page) from the client
> > to Apache?
>
>You're not going to get the browser to send
> a custom header by any changes you make to the
> page, except possibly using Aj
> This is a bit awkward since the QUERY_STRING in POST
> can be anything, for example an XML-documents.
..
> Though, how should I deal with, for example, an
> XML-document in a POST requests? Where should I
> "hide" the transaction identifier?
A post doesn't normally have anything in the
Hi,
A post doesn't normally have anything in the
> QUERY_STRING. Rather a POSTed form has the stuff
> being sent in the request body, which is read from
> STDIN by a script. QUERY_STRING is still available
> for use. Consider this form:
>
> form method=post action=myscript.cgi
> input name=em
13 matches
Mail list logo