SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie_Content_Type_Sniffer

SimplePie_Content_Type_Sniffer

:!: This is a non-public object, and is only intended to be used internally by SimplePie.

SimplePie_Content_Type_Sniffer is used for detecting the correct Content-Type of files when the HTTP headers can't be trusted. Our implementation is based upon HTML 5, which is very similar to what Firefox 3 will ship with. This algorithm is designed to minimise possible security risks caused by treating content differently to how it is served, as well as being mostly compatible with Internet Explorer 7 and Safari 3. The sniffing may change in part, or in whole, at any time. This class can be overloaded with set_content_type_sniffer_class().

See Also


reference/simplepie_content_type_sniffer/start.txt · Last modified: 2011/03/05 19:56 (external edit)