W3C home > Mailing lists > Public > public-lod@w3.org > June 2010

Re: Slightly off topic - content negotiation by language accept headers

From: KangHao Lu (Kenny) <kennyluck@csail.mit.edu>
Date: Thu, 24 Jun 2010 00:11:47 +0900
Cc: ML public-lod <public-lod@w3.org>
Message-Id: <5AB6C831-476C-4A35-A4F4-DD52724324E6@csail.mit.edu>
To: Michael Smethurst <michael.smethurst@bbc.co.uk>
Hi Michael,


> ...does anyone know of any real world sites that content negotiate on
> language accept headers? Yves has pointed out that Google search  
> does do
> this so if I request google.co.uk with german set above english in my
> browser preferences it serves a page at co.uk in german. But I'm not  
> sure if
> any other sites are doing this... Is it something anyone here has  
> tried with
> eg dbpedia?

One well-known example is the documentation of Apache, the Web server.  
For example,

curl -I http://httpd.apache.org/docs/2.1/content-negotiation.html -H  
'Accept-Language: ja'
HTTP/1.1 200 OK
Date: Wed, 23 Jun 2010 15:05:28 GMT
Server: Apache/2.2.12 (Unix) mod_ssl/2.2.12 OpenSSL/0.9.7d mod_wsgi/ 
3.2 Python/2.6.5rc2
Content-Location: content-negotiation.html.ja.utf8
Vary: negotiate,accept-language,accept-charset,Accept-Encoding
TCN: choice
Last-Modified: Fri, 02 Oct 2009 22:27:15 GMT
ETag: "1715b13-9aa2-474fb442870e5;1715b43-216-474fb442bea6d"
Accept-Ranges: bytes
Content-Length: 39586
Content-Type: text/html; charset=utf-8
Content-Language: ja

IIRC, developer portals like the IBM site or MSDN do content  
negotiation.


> Also unsure how many browsers support this setting. I can see and  
> use the
> setting in mac firefox 3 but can't find anything in the preferences  
> for
> either safari or chrome
>
> Finally wondering how google et al treat a site that does conneg on
> language. If the same url can serve french and english will it be  
> indexed as
> both? Do search bots send out language accept headers?

This I am also interested in. Any expert?

Cheers,
Kenny
Web ID: http://dig.csail.mit.edu/People/kennyluck#I
What is Web ID: http://esw.w3.org/WebID




Received on Wednesday, 23 June 2010 15:12:32 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:27 UTC