Standards
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Standards

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 31st, 2008, 10:02 AM
Sebastien Lambla
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Question about the On Linking Alternative Representations TAG Finding

Is it ever appropriate to configure content negotiation on the
*representation-specific URIs*? So, if someone requests the specific URI
for representation_1, but the Accept header indicates a preference for
representation_3, should content negotiation kick in and representation_3
be served instead?

If your url is the representation-specific one, then the conneg would fail
if the content-type of /resource.html is text/html and the Accept: only
contains application/xhtml+xml, as the representation is not the resource
and the url you requested is the one of the representation, not the
resource. I would return a 406.

I'd understand the reasoning as being that if you dereference /resource.html
and get a 200 you can assert it is a document, if you were to conneg to
another url from the specific url you loose that assertion as defined in
httpRange-14

Sebastien Lambla

Reply With Quote
  #2  
Old July 31st, 2008, 06:20 PM
Alan Ruttenberg
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Question about the On Linking Alternative Representations TAG Finding

Jul 31, 2008, at 1:23 PM, Booth, David (HP Software - Boston) wrote:
>>

I think serving the JSN is the best option. Serving HTML from /
resource.json would defeat the purpose of having a JSN-specific
URI. It is quite likely that the user pasted the JSN URI into a
browser to test it, and *wants* to see the JSN that is returned.
Everyone knows how to paste a URI into a browser; few know how to
configure their browsers to specify their desired MIME types.

I don't see how the best option is to ignore the accept header. If
the accept header says to accept only html then you shouldn't respond
with a different mime type as if that was an appropriate response.
The 406 or 30x responses make more sense.

It's like saying, in a negotiation, that it's a fine thing to ignore
other negotiator and do what you want. Its not much of a negotiation
in that case.

-Alan

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Standards > Question about the On Linking Alternative Representations TAG Finding


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek