Simon Fell > Its just code > conneg

Saturday, March 1, 2003

I've seen Content Negotition for RSS mentioned in a number of different places recently, the biggest issue being the chicken & egg situation of no sites supporting it, so the tools don't support it, so no sites support it. So, following DJ's lead, in an attempt to start the ball rolling this weblog is now conneg enabled for RSS
GET /weblog/ HTTP/1.1
Host: www.pocketsoap.com
Accept: application/rdf+xml
Accept-Encoding: deflate
User-Agent: PocketHTTP/0.1

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Sat, 01 Mar 2003 16:40:33 GMT
Cache-Control: public
Expires: Sat, 01 Mar 2003 17:10:34 GMT
Last-Modified: Sat, 01 Mar 2003 16:40:34 GMT
Vary: Accept
Content-Type: application/rdf+xml
Content-Length: 24986

<?xml version="1.0"?>
<!-- name="generator" 
  content="rdf.root/0.7.3 (http://www.ideaspace.net/users/wkearney/misc/radio/radio8/rdf/0.7.3)" -->
<rdf:RDF xmlns:rdf="http:....

GET /weblog/ HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
If-Modified-Since: Sat, 01 Mar 2003 15:58:40 GMT
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Host: www.pocketsoap.com
Connection: Keep-Alive

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Sat, 01 Mar 2003 16:42:47 GMT
Cache-Control: public
Expires: Sat, 01 Mar 2003 17:12:47 GMT
Last-Modified: Sat, 01 Mar 2003 16:42:47 GMT
Vary: Accept
Content-Type: text/html; charset=utf-8
Content-Length: 22581

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html lang="en">....
As my RSS feed is RSS1.0, both application/rdf+xml and application/rss+xml are supported.