W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2008

Re: HTML5 vs content type sniffing

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Tue, 29 Jan 2008 15:08:43 +0100
To: ietf-http-wg@w3.org
Message-ID: <fnnc0o$m9l$1@ger.gmane.org>

Stefan Eissing wrote:

>| 7.2.1 Type
[...]
>| If and only if the media type is not given by a Content-Type field,
>| the recipient MAY attempt to guess the media type via inspection
>| of its content and/or the name extension(s) of the URI used to
>| identify the resource. If the media type remains unknown, the
>| recipient SHOULD treat it as type "application/octet-stream".

Attempting to outsmart MIME, apparently.  For MIME it is straight
forward, no Content-Type is a shorthand for text/plain US-ASCII,
and if that is obviously wrong recipients will manage to treat it
as appication/octet-stream or x-unknown/x-garbage without SHOULD.

 Frank
Received on Tuesday, 29 January 2008 14:08:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:50:36 GMT