W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 1996

Re: Language negotiation and robots

From: Roy T. Fielding <fielding@liege.ICS.UCI.EDU>
Date: Mon, 15 Jul 1996 20:03:21 -0700
To: Andrew Daviel <andrew@vancouver-webpages.com>
Cc: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com
Message-Id: <9607152003.aa02362@paris.ics.uci.edu>
X-Mailing-List: <http-wg@cuckoo.hpl.hp.com> archive/latest/1128
> I am interested in the interaction between this and web robots; 
> specifically, how to tell the robot that the document is available
> in more than one language.

Using the Alternates header field, which has yet to have a well-defined

> Using the Apache type-map model, if no Accept-language
> field is sent, one gets the first URL (assuming qs is not used or are equal).
> Would it be valid to do something like this:
> URI: start; vary="language"
> URI: unknown.html
> Content-type: text/html
> Content-language: en,fr,de
> URI: german.html
> Content-type: text/html
> Content-language: de
> URI: english.html
> Content-type: text/html
> Content-language: en
> etc.
> so that a robot with language-accept unset would retrieve the 
> "Content-language: en,fr,de" header, and then retry with 
> Accept-language set to en, fr, de in turn?

No, that would not be valid.

> As this multiple-language header seems to be valid in the current draft 
> spec., I presume it should not break (future) browsers.

The semantics are different -- "Content-language: en,fr,de" means that
the content of that *response* is intended for people who want to read
English, French, or German (e.g., a document containing three descriptions 
of the same thing in those three languages).  It does not indicate what
other languages are available at that resource.

What you want is Alternates.  What is currently available is

   Vary: Accept-Language

which does indeed give the browser a clue that other languages may be
available (but not an exact clue).

 ...Roy T. Fielding
    Department of Information & Computer Science    (fielding@ics.uci.edu)
    University of California, Irvine, CA 92697-3425    fax:+1(714)824-4056
Received on Monday, 15 July 1996 20:20:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:40:17 UTC