Re: [MP2] Handler feauters in a filter?

2002-12-03 Thread Issac Goldstand
- Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> > Issac Goldstand wrote: > > Not sure how to translate that to mod_perl's API (the first half is easy and > > understandable in C, I think, though...) > > It works exactly the same, just add $ before 'f' :) Though you don't say >

Re: [MP2] Handler feauters in a filter?

2002-12-03 Thread Stas Bekman
Issac Goldstand wrote: Implemented it in C: if (f->r->status==HTTP_NOT_FOUND) // If this is so, we need to revamp the request_rec { f->r->status=HTTP_OK; // Spoof HTTP_OK f->r->status_line="200 OK"; APR_BRIGADE_INSERT_TAIL(ctx->bb,apr_bucket_eos_create(f->c->bucket_alloc)); // Add an E

Re: [MP2] Handler feauters in a filter?

2002-12-03 Thread Issac Goldstand
x27;m not sure if it's the "best way to do it"... I'm sure that as I delve deeper into Apache 2, I'll find better solutions... Issac - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Issac Goldstand" <[EMAIL PROTECTED]

Re: [MP2] Handler feauters in a filter?

2002-12-03 Thread Stas Bekman
Issac Goldstand wrote: I'm writing a filter in which two lines of data are to be appended to the content going back. However, I'd like to test for a 404, and if found set the response to 200. Can this be done from the output filters? Or am I going to have to do something more complex with a han

[MP2] Handler feauters in a filter?

2002-12-02 Thread Issac Goldstand
I'm writing a filter in which two lines of data are to be appended to the content going back. However, I'd like to test for a 404, and if found set the response to 200. Can this be done from the output filters? Or am I going to have to do something more complex with a handler? The big problem i