Re: Creating a filter for all text/html files

[prev] [thread] [next] [Date index for 2005/02/03]

From: Scott Gifford
Subject: Re: Creating a filter for all text/html files
Date: 07:39 on 03 Feb 2005
"Philippe M. Chiasson" <gozer@xxxxxxxxx.xxx> writes:

> Scott Gifford wrote:
>> Hello,
>> [...]
>>
>> I've got it working right now, but I'd like it to know the
>> Content-Type that Apache would use for a document, so I can decide
>> whether to filter it and so I can send a correct Content-Type header.
>
> $r->content_type should tell you that.
>
> http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_content_type_

[...]

Geoffrey Young <geoff@xxxxxxxxxxxxxxx.xxx> writes:

[...]

> in addition to what philippe said, Apache::Clean for mp2 should prove as a
> good example for you to follow:
>
>   http://search.cpan.org/~geoff/Apache-Clean-2.00_4/

Thanks very much!  Both of these pointers were very helpful.  I swear
I tried looking at content_type and it didn't work, but it must have
been a bug somewhere else, because it works perfectly now.

Thanks again!

---ScottG.

Creating a filter for all text/html files
Scott Gifford 03:49 on 31 Jan 2005

Re: Creating a filter for all text/html files
Philippe M. Chiasson 18:50 on 01 Feb 2005

Re: Creating a filter for all text/html files
Scott Gifford 07:39 on 03 Feb 2005

Re: Creating a filter for all text/html files
Geoffrey Young 19:01 on 01 Feb 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52