Re: Creating a filter for all text/html files

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

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

> I can try to guess the content-type from the filename (which is what
> I'm doing now), but I'd prefer not to re-implement Apache's system for
> deciding content types, and I'd also like it to Do The Right Thing for
> CGI/mod_perl scripts, where you can't tell by the filename what
> content-type they're going to output.

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/

see also the two articles on perl.com that talk about this particular module:

  http://www.perl.com/pub/a/2003/04/17/filters.html
  http://www.perl.com/pub/a/2003/05/22/testing.html

HTH

--Geoff

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