Re: Is “fr, en; q=0.3” a valid Accept-Language value?

Samuel Williams <space.ship.traveller@gmail.com> Mon, 31 October 2016 01:54 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DF0161294B5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 30 Oct 2016 18:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.998
X-Spam-Level:
X-Spam-Status: No, score=-7.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M-6IXa6QebW5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 30 Oct 2016 18:54:25 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D4AB12949C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 30 Oct 2016 18:54:24 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c11jg-0004fo-AT for ietf-http-wg-dist@listhub.w3.org; Mon, 31 Oct 2016 01:50:04 +0000
Resent-Date: Mon, 31 Oct 2016 01:50:04 +0000
Resent-Message-Id: <E1c11jg-0004fo-AT@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <space.ship.traveller@gmail.com>) id 1c11ja-00038M-8i for ietf-http-wg@listhub.w3.org; Mon, 31 Oct 2016 01:49:58 +0000
Received: from mail-oi0-f46.google.com ([209.85.218.46]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <space.ship.traveller@gmail.com>) id 1c11jP-0005Rh-Kv for ietf-http-wg@w3.org; Mon, 31 Oct 2016 01:49:53 +0000
Received: by mail-oi0-f46.google.com with SMTP id 62so78306609oif.1 for <ietf-http-wg@w3.org>; Sun, 30 Oct 2016 18:49:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uAyG0oAFlnBEWW869jFggQZXWQukVoyy+/M8s6/dKlA=; b=Hhex2dnF2eKy/We5PH9WVeGVXy5ZUp/Ez9l77JnvBnQKCxL45K1A1p5xvyNincoOxw EDjao1ixAear71umzAW7scVPRmKMOUGP/8+lcvsL0HneVQYp2lW751oXEwsXOrzstg0D zuovZ7Mcjnp8rqRRwqTkRACshXpBJSlGqKD5UkdCH2kvPe1n7MnksP9GePTLCOhr51to 6WIqz0yygqjs2uH2NwyIU4/zjkdbkIp2gBCBP8dqYvObrwsiFRDV8JtJZJvRBxDgZxJE MJRjZNgMm3khJgT/Ua7CIyJRhjI+fgWgZ/7AaXfF0AF+8pWGgc026P1h+lcYPoThhJHo PNuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uAyG0oAFlnBEWW869jFggQZXWQukVoyy+/M8s6/dKlA=; b=Yh+ZGdRttJZ+mlOxMVZLLRYvs8TJvaLZTZbQ+UtOaK+eQFJVQayjK/zgCW8BsJA6My GKLrXsmKHra6yXlSDm/InT5zW1HpUeBuc9MIdiHGt6xTf8jDi3OgxVMJ8vE0npanpUzN AjweWZhxqiOcCTrrKkWKjwypiQL2sZdJv0fzKyxOfxrPhPdtV0OyJ8dJP0RJbA83n7fm JCQ+AL+CRNdQgN3yvfY3Vqysx54wz0JBMzJf8AKhcxsT5Adud+/Re/QF2DCBEmvjMT2l s5OiMMOb5caRxnpZr7OOMen8t81502+ipKNaJxYSCHmaY1wBQ+Vmwpi/JtUWHJ2eOXQx vYbQ==
X-Gm-Message-State: ABUngve2js+fbCpx6FjTL38695fUKpDjQ1k/qcKAdcpHPpr7q2nF7FgvaBkE5GYcEJX6nsUZ7I9nrcQ9CVicFQ==
X-Received: by 10.202.245.143 with SMTP id t137mr14941802oih.78.1477878561528; Sun, 30 Oct 2016 18:49:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.97.2 with HTTP; Sun, 30 Oct 2016 18:49:21 -0700 (PDT)
In-Reply-To: <42a785da-8417-654c-afd5-6dc977520bc5@treenet.co.nz>
References: <CAHkN8V9RyAVprdWT2ZRDfDyCc+aj7Q6iJdGRr8N2m-qzEis7Kw@mail.gmail.com> <7135c8b0-9f02-04bb-5649-dbab1ba6313c@gmx.de> <CAHkN8V_gsHTNUoG4qEOPXHkyvWrZBRhWdORuntWyBg2PPNM2og@mail.gmail.com> <46cad21a-270b-76cd-9b43-11d66d49e116@gmx.de> <CAHkN8V-gPifMhXt76M5o+ty-A-gAjJvrL=Tt9h8xXW-0CwoX+Q@mail.gmail.com> <f11f9281-fd2a-444f-6ca3-8a60313b8f8b@gmx.de> <CAHkN8V9DTu=xVft3ZaFo6kYAwqQsFDZc1ZZSfvuiG+bPMnwNfQ@mail.gmail.com> <42a785da-8417-654c-afd5-6dc977520bc5@treenet.co.nz>
From: Samuel Williams <space.ship.traveller@gmail.com>
Date: Mon, 31 Oct 2016 14:49:21 +1300
Message-ID: <CAHkN8V_=C_eUsw6c6ZserP3fr573U=wCtzhV4EjyZL_DKf1Cpw@mail.gmail.com>
To: Amos Jeffries <squid3@treenet.co.nz>
Cc: ietf-http-wg@w3.org
Content-Type: text/plain; charset=UTF-8
Received-SPF: pass client-ip=209.85.218.46; envelope-from=space.ship.traveller@gmail.com; helo=mail-oi0-f46.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=0.188, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c11jP-0005Rh-Kv 6259a080d49c91340c01a7194aa471cd
X-Original-To: ietf-http-wg@w3.org
Subject: =?UTF-8?B?UmU6IElzIOKAnGZyLCBlbjsgcT0wLjPigJ0gYSB2YWxpZCBBY2NlcHQtTGFuZ3VhZ2Ugdg==?= =?UTF-8?B?YWx1ZT8=?=
Archived-At: <http://www.w3.org/mid/CAHkN8V_=C_eUsw6c6ZserP3fr573U=wCtzhV4EjyZL_DKf1Cpw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32745
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Thanks Amos, yes, that's exactly how it works in the code. But thanks
for clarifying it.

The reason why I used the word computed is because it's not a direct
1-1 association. If you want to find the q value for image/jpeg, you
need to first see, is there image/jpeg? no. Is there image/*? no. Is
there */*? Yes. To me, this is a computation, not simply an
association.

On 31 October 2016 at 14:29, Amos Jeffries <squid3@treenet.co.nz> wrote:
> On 31/10/2016 12:15 a.m., Samuel Williams wrote:
>> Thanks Julian, yes I wondered if that was how it was being explained.
>> It might be the wording of the sentence preceding the table:
>>
>>> would cause the following values to be associated:
>>
>> It might be clearer if it were "could be used to compute the following
>> quality values:"
>>
>
> It is not computing quality values. The q values are provided by the
> client. It is simply associating those q= values with the possible
> response types.
>
> Like so:
> 1) take the request Accept list
> 2a) sort by q= value
> 2b) drop explicit types that cannot be produced (ie xml/tar)
> 3) output the response for type at the front of the list
>
>
> If you are writing a client to produce Accept lists, then you should do
> the sorting step when generating the request so as to get faster
> responses from the server.
>
> Amos
>
>