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

Samuel Williams <space.ship.traveller@gmail.com> Sun, 30 October 2016 09:26 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 68E2C129475 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 30 Oct 2016 02:26:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.098
X-Spam-Level:
X-Spam-Status: No, score=-6.098 tagged_above=-999 required=5 tests=[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 Hqz79fK2jUPg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 30 Oct 2016 02:26:29 -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 B58A11293FF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 30 Oct 2016 02:26:28 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1c0mJg-0007Wf-HI for ietf-http-wg-dist@listhub.w3.org; Sun, 30 Oct 2016 09:22:12 +0000
Resent-Date: Sun, 30 Oct 2016 09:22:12 +0000
Resent-Message-Id: <E1c0mJg-0007Wf-HI@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 1c0mJY-0007Vg-4b for ietf-http-wg@listhub.w3.org; Sun, 30 Oct 2016 09:22:04 +0000
Received: from mail-oi0-f43.google.com ([209.85.218.43]) 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 1c0mJR-00011i-HW for ietf-http-wg@w3.org; Sun, 30 Oct 2016 09:21:58 +0000
Received: by mail-oi0-f43.google.com with SMTP id 62so53252974oif.1 for <ietf-http-wg@w3.org>; Sun, 30 Oct 2016 02:21:37 -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=OhyH6Q4dsG6jRrD3fzYa8FrqypL7yLi7wQzG8Nu+xc8=; b=Q2iTTfI5pwm9pBZIfucuFsnh81I2fPgUPSASUX6ztZvo6sfHTSh1X5efRnp7TzLPZG +2L6f+ayBu7m6cnQC5BjwtMZ0cBs+U0KP1lywT1tVmEr8mHCYXsaHXufn8s8j0SnZc8P YZ3JaXMk9Q0PwIgONxfogucBszood5NRSSWV/YHzmSS/p+3WQakarF82WIopcrFeLNVb LE/usV8kzj7DVwZbX3N96Nno/sF31nTXHALGXJP2HEq2u1vt2BVVjh0AV68dC0cHC5Fk btaxsCYTIqEOYCTGbPHLORdYbX6axseOxd9tDb4E3pclAIH9FdDHXSHi0kE6q1+SmIvV VCJQ==
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=OhyH6Q4dsG6jRrD3fzYa8FrqypL7yLi7wQzG8Nu+xc8=; b=EcO9M94hONRFMR/LltredBSEj+iYvU/Is+JGxungnS0WCumcb3b3ZUsuMk4F9covvZ 5UDTzRACxTVk7csiBomapnBVGnGIFUYrLQ8bFCHPsgtR+B/Ki1oI7efnl5blkMJPtoui 4bl8BHkoAzYCGOnxVx3epToQBmyzjXEpcFrv4EqWoFZ3wFj9AKQWj7rKZyVl8Z+N/n+R Xaj5tsmbnqiZmRep2QbftT/6bJ7Ykpte/97X8vPB6Ck2yqUHb4Xsz/QFt1agmiGLFONy 8hy/msBY3/fMV7SE9jreLcSJoVFLvGAlr4tSOZifYIWIDRFxjVJAY47DDvkysE7pm8gL RkUw==
X-Gm-Message-State: ABUngvccGWRFPDM589wKAuRZOEFX8t2AwSa1N+52/Sv+zAz7tqatd4wIScz0+jj2HpvHO0HEGA3o7gK/uFVIhw==
X-Received: by 10.202.223.137 with SMTP id w131mr22447502oig.150.1477819291258; Sun, 30 Oct 2016 02:21:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.97.2 with HTTP; Sun, 30 Oct 2016 02:21:30 -0700 (PDT)
In-Reply-To: <46cad21a-270b-76cd-9b43-11d66d49e116@gmx.de>
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>
From: Samuel Williams <space.ship.traveller@gmail.com>
Date: Sun, 30 Oct 2016 22:21:30 +1300
Message-ID: <CAHkN8V-gPifMhXt76M5o+ty-A-gAjJvrL=Tt9h8xXW-0CwoX+Q@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: ietf-http-wg@w3.org
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.218.43; envelope-from=space.ship.traveller@gmail.com; helo=mail-oi0-f43.google.com
X-W3C-Hub-Spam-Status: No, score=-4.9
X-W3C-Hub-Spam-Report: AWL=-1.417, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1c0mJR-00011i-HW aaf4c95e0a0bcbcf4fc0258a41a22f52
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Is “fr, en; q=0.3” a valid Accept-Language value?
Archived-At: <http://www.w3.org/mid/CAHkN8V-gPifMhXt76M5o+ty-A-gAjJvrL=Tt9h8xXW-0CwoX+Q@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/32730
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>

Just as a follow up, I've been using other examples on that page as
part of the unit tests.

However, I am finding it hard to understand the final table:

The media type quality factor associated with a given type is
determined by finding the media range with the highest precedence that
matches the type. For example,

  Accept: text/*;q=0.3, text/html;q=0.7, text/html;level=1,
          text/html;level=2;q=0.4, */*;q=0.5

would cause the following values to be associated:

Media Type Quality Value
text/html;level=1 q=1
text/html q=0.7
text/plain q=0.3
image/jpeg q=0.5
text/html;level=2 q=0.4
text/html;level=3 q=0.7

But I fail to see, for example, where image/jpeg comes from or, say,
text/html;level=3 because they aren't listed in the given Accept:
header. Is this a documentation bug?


On 19 October 2016 at 23:20, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 2016-10-19 12:03, Samuel Williams wrote:
>>
>> Thanks so much that is really helpful. I didn't know there was a new
>> RFC, and I did look.. I couldn't find it.
>
>
> The place to look is the RFC Editor's status page:
>
> <https://www.rfc-editor.org/info/rfc2616>
>
> Best regards, Julian
>