... in addition to what philippe said, Apache::Clean for mp2 should prove as a good example for you to follow:Message 1 of 4 , Feb 1, 2005View Source
> I can try to guess the content-type from the filename (which is whatin addition to what philippe said, Apache::Clean for mp2 should prove as a
> 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.
good example for you to follow:
see also the two articles on perl.com that talk about this particular module:
... [...] Geoffrey Young writes: [...] ... Thanks very much! Both of these pointers were very helpful. I swear I tried looking atMessage 1 of 4 , Feb 2, 2005View Source"Philippe M. Chiasson" <gozer@...> writes:
> Scott Gifford wrote:[...]
>> 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.
Geoffrey Young <geoff@...> writes:
> in addition to what philippe said, Apache::Clean for mp2 should prove as aThanks very much! Both of these pointers were very helpful. I swear
> good example for you to follow:
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.