Content-Type Guesser

Thomas Guettler zopestoller at thomas-guettler.de
Wed Jul 24 08:32:03 EDT 2002


Hi!

Has someone a function for guessing the content type
given a filename?

foo.xml --> text/xml
foo.html --> text/html
....

It should work for the most common file-extensions

  thomas




More information about the Python-list mailing list