Re: using mod_deflate inside a module

2007-07-04 Thread Nick Kew
On Wed, 04 Jul 2007 17:38:20 +0200 Marco Spinetti <[EMAIL PROTECTED]> wrote: > Nick, could you advice me with a solution See the first sentence of the second paragraph of what I posted: > > If you want a functional API for (de)compression, then nothing in > > apache is relevant to you, except i

Re: using mod_deflate inside a module

2007-07-04 Thread Marco Spinetti
Well my architecture now is a module which gets the contents from different sources, elaborate them building a final xml and then it registers an output filter which reply to the user. So I'm already using an output filter. But if only a source of mine reply with gzip content, I don't see how to

Re: using mod_deflate inside a module

2007-07-04 Thread Nick Kew
On Wed, 04 Jul 2007 17:08:56 +0200 Marco Spinetti <[EMAIL PROTECTED]> wrote: > There is something I can't understand. > If you declare > > ap_add_output_filter("INFLATE", ctx, req, conn); > > how can I call the function to decompress a content and the get the > control again? > I knew that ap_

Re: using mod_deflate inside a module

2007-07-04 Thread Marco Spinetti
There is something I can't understand. If you declare ap_add_output_filter("INFLATE", ctx, req, conn); how can I call the function to decompress a content and the get the control again? I knew that ap_add_output_filter declares an outut filter which is called after your module. Am I missing

Re: using mod_deflate inside a module

2007-07-04 Thread Mike
On 7/4/07, Marco Spinetti <[EMAIL PROTECTED]> wrote: So are you telling me that I should call deflate_in_filter (which is defined inside mod_defalte) inside my module and then go on with the uncompressed result? Could you give me some suggestion about how to do it? you need to include mod_deflat

Re: using mod_deflate inside a module

2007-07-03 Thread Marco Spinetti
So are you telling me that I should call deflate_in_filter (which is defined inside mod_defalte) inside my module and then go on with the uncompressed result? Could you give me some suggestion about how to do it? Best regards Mike ha scritto: On Tue, Jul 03, 2007 at 05:18:44PM +0200, Marco S

Re: using mod_deflate inside a module

2007-07-03 Thread Mike
On Tue, Jul 03, 2007 at 05:18:44PM +0200, Marco Spinetti wrote: > I have a question about how to use a part of mod_deflate in my module. > Inside my module I connect to a external source sending it a dynamic query > and it replies with a gzip content. > I should take this content, decompress

using mod_deflate inside a module

2007-07-03 Thread Marco Spinetti
I have a question about how to use a part of mod_deflate in my module. Inside my module I connect to a external source sending it a dynamic query and it replies with a gzip content. I should take this content, decompress it and then I have to modify it. I'd like to know if inside my module I co