Through my MP2 handler, I need to be able to set Content-Type based on
the extension of any file that I'm reading from disk and then writing
to the client.  I'd like to somehow (programmatically) map from file
extension to MIME type, and it seems like Apache's mime.types file is
a good place to do this.  Unfortunately it doesn't look like there's
an API for this.  Am I wrong?  Any other ideas aside from reading (and
potentially caching) the mime.types file directly?

thanks
JB

Reply via email to