[whatwg] 2.7.4. Content-Type sniffing
Kristof Zelechovski
giecrilj at stegny.2a.pl
Fri Aug 22 12:14:38 PDT 2008
GNU libmagic used by the command line utility "file" can be used for
content-type sniffing as well.
Chris
-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Mark Pilgrim
Sent: Friday, August 22, 2008 4:51 AM
To: whatwg at lists.whatwg.org
Subject: [whatwg] 2.7.4. Content-Type sniffing
The spec has a note saying "I'd like to add types like MPEG, AVI,
Flash, Java, etc, to the above table."
http://www.garykessler.net/library/file_sigs.html seems to have an
up-to-date list of many file signatures, including SWF (43 57 53), AVI
(52 49 46 46 xx xx xx xx 41 56 49 20 4C 49 53 54), Java class files
(CA FE BA BE), MPEG files (00 00 01 Bx), and so on.
Cheers,
-Mark
More information about the whatwg
mailing list