Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread ricardo13
Thank you Eric, Now, I undestood. Eric Covener wrote: > > On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 > wrote: > >>> One question for I undestand the sequence of hooks. >>> Do It means that firstly worker.c processes sockets (accept >>> connections), >>> after other modules processes the hook

Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
Hi Everybody, Quick question: does anyone have any examples of implementing conditional authentication in a module? I'd like my module to serve a file if public access is granted, and challenge if not. I thought that it might be possible to dynamically insert a require statement into a request

Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread ricardo13
Eric Covener wrote: > > On Sun, Jul 19, 2009 at 11:50 PM, ricardo13 > wrote: > >>> One question for I undestand the sequence of hooks. >>> Do It means that firstly worker.c processes sockets (accept >>> connections), >>> after other modules processes the hooks (post_read_request, >>> translate

RE: Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
I've just found something that does pretty much what I want but with mod_perl. For an example, see 13.5 in the following chapter (warning: link is a PDF) http://www.modperlcookbook.org/chapters/ch13.pdf I thought that I might be able to control the flow from within the access hook! Anyo

Re: Dynamicly insert 'require' into request

2009-07-21 Thread Nick Kew
On 21 Jul 2009, at 13:44, Ben Davies wrote: I've just found something that does pretty much what I want but with mod_perl. For an example, see 13.5 in the following chapter (warning: link is a PDF) mod_perl just exposes the API to Perl programmers. Translate their example to C and it'll

RE: Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
> mod_perl just exposes the API to Perl programmers. Translate their > example > to C and it'll work without mod_perl. Excellent! Just what I was hoping for! Any clues as to the C equivalent of set_handler()? I've been looking in the apache header files and not found anything yet that matches.

How I pass a information ?

2009-07-21 Thread ricardo13
-- View this message in context: http://www.nabble.com/How-I-pass-a-information---tp24588474p24588474.html Sent from the Apache HTTP Server - Module Writers mailing list archive at Nabble.com.

Re: How do I manipulate request_rec Object in worker.c

2009-07-21 Thread Eric Covener
On Tue, Jul 21, 2009 at 8:40 AM, ricardo13 wrote: >> Is pre-connection a hook ? Yes, see mod_example.c -- Eric Covener cove...@gmail.com

How I pass a information ?

2009-07-21 Thread ricardo13
Hi, I would like to konw how I pass information to other machine and between modules. For example: module A (mod_rewrite) in Server A forward request to module b (worker.c) in Server B. The modules are different. The module A sets a information and module only "get" that information. Remember,

Re: How I pass a information ?

2009-07-21 Thread Eric Covener
On Tue, Jul 21, 2009 at 10:17 AM, ricardo13 wrote: > > Hi, > > I would like to konw how I pass information to other machine and between > modules. > > For example: > > module A (mod_rewrite) in Server A forward request to module b (worker.c) in > Server B. > The modules are different. The module A