Determining Content-Type
Oleg Broytmann
phd at phd.pp.ru
Tue Jan 23 07:32:27 EST 2001
On Tue, 23 Jan 2001, Andreas Pauley wrote:
> I would like to know if there is a way for me to determine the HTTP
> Content-Type header of a file residing on disk.
You cannot determine - you can only guess. For good guess, use
mimetypes.py from standard library.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list