On Jul 2, 2006, at 5:59 PM, Tim Bray wrote:

On Jul 2, 2006, at 7:27 AM, Jan Algermissen wrote:

do you think it is desired/appropriate behaviour for an Atom server to redirect from a media entry to the media resource when a client does a GET request with the Accept header *not* containing application/atom+xml?

You mean media link entry.

Yes, just saw that in the 09 draft. Sorry.

Let's try to keep our usage of spec technology consistent, to be clear with each other and set an example. -Tim

Taken from 09 draft 8.4.2:

       <?xml version="1.0"?>
       <entry xmlns="http://www.w3.org/2005/Atom";>
         <title>A picture of the beach</title>
         <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
         <updated>2003-12-13T18:30:02Z</updated>
         <author><name>John Doe</name></author>
         <summary type="text" />
         <content type="image/png"
           src="http://example.org/media/img123.png"/>
         <link rel="edit"
           href="http://example.org/edit/first-post.atom"; />
         <link rel="edit-media"
           href="http://example.org/edit/img123.png"; />
       </entry>

(Suppose this is at /feed/media-links/3

So, upon a

GET /feed/media-links/3 HTTP/1.1
Accept: image/*

should the server respond with a temporary redirect?

HTTP/1.1 307 Moved temporarily
Location: http://example.org/media/img123.png

Jan



Reply via email to