language agnostic - File Extension to MIME Type Web Service? -


Is there any web service that will allow me to provide a file extension and it will probably return the MIME type list?

For example:

  http://mimetype.com/getMime/doc  

who can return: < / P>

  application / msword, application / docappl / text, application / vnd.msword, application / vnd.ms-word, application / winword, application / word, application / x-msw6, application / x -msword  

I do not want to use it and I do not want to keep my own list up to date.

Thanks

The only thing I could think of is to parse that list Which will come with Apache server. This list is retained by Apache Software Foundation and depends on


Comments