How to sniff a feed

I thought the Feed Validator’s ‘foo’ media type is not specific enough warning page was particularly useful/interesting.

RSS feeds should be served as application/rss+xml. Atom feeds should use application/atom+xml. If this is not possible, make sure that one of the following set of markers is present in the first 512 bytes of your feed

  • <rss
  • <feed
  • <rdf:RDF AND http://www.w3.org/1999/02/22-rdf-syntax-ns# AND http://purl.org/rss/1.0/

This post first appeared on From the Belly of the Beasts, a weblog from some of the people who build O’Reilly websites.

Haha on the feedvalidator mailing list:

Anyway, I’m not going to go all “feedvalidator is dead to me” over this. Just wanted to raise my concerns and see what you thought. —James Holderness

Cool, using Greasemonkey to encrypt feed content: Secure Syndication (from etech this year)

To read later: Feeding fury

Mark Rothko was an unknown abstract expressionist when he won a plum commission – to provide paintings for New York’s swankiest restaurant. So why did he pull out and give them to the Tate?

Why don’t your feeds display in my browser?

From the mailbags this morning, I got the following bug report:

You have two broken links to subscribe to RSS feeds. In both cases, my browser tries to open/save to my desktop rather than open the rss feed in a browser window.

My response, though nothing new, I thought some might find interesting, at least for future reference.

rfc3023.jpg

“We return our feeds with the correct MIME type for the syndication format. In the case of RSS 2.0 that would be application/rss+xml, per RFC 3023.

“This is important because it means your browser should able to use this information to determine the file format and launch the appropriate helper program or plugin (e.g. a newsreader) to read the file. We realize in practice this may not be the case. Internet Explorer has not been revised in over 4 years and Firefox requires some additional configuration in order to display application/rss+xml files in the browser (but the latter can be done).

Some people advocate sending RSS feeds out with a more generic text/xml MIME type, which most browsers natively know how to parse and display. However, doing so would make it impossible for browsers (and more importantly, newsreaders) to know what sort of XML file you’re downloading and what helper application to load.”

This post first appeared on From the Belly of the Beasts, a weblog from some of the people who build O’Reilly websites.