"Philippe M. Chiasson" <[EMAIL PROTECTED]> 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 heade
> 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
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.