p2: section 5.3.2 (Accept header)
Osama Mazahir <OSAMAM@microsoft.com> Thu, 09 May 2013 00:41 UTC
Return-Path: <ietf-http-wg-request@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 E2F3D21F8E5F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2013 17:41:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.598
X-Spam-Level:
X-Spam-Status: No, score=-10.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pkHwyeKmfCUt for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 8 May 2013 17:41:33 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D5E4821F8E06 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 8 May 2013 17:41:32 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UaEup-0004Za-Tw for ietf-http-wg-dist@listhub.w3.org; Thu, 09 May 2013 00:40:59 +0000
Resent-Date: Thu, 09 May 2013 00:40:59 +0000
Resent-Message-Id: <E1UaEup-0004Za-Tw@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <OSAMAM@microsoft.com>) id 1UaEuZ-0004Yr-8Q for ietf-http-wg@listhub.w3.org; Thu, 09 May 2013 00:40:43 +0000
Received: from mail-bl2lp0208.outbound.protection.outlook.com ([207.46.163.208] helo=na01-bl2-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <OSAMAM@microsoft.com>) id 1UaEuY-0002AW-9u for ietf-http-wg@w3.org; Thu, 09 May 2013 00:40:43 +0000
Received: from BN1AFFO11FD023.protection.gbl (10.58.52.200) by BN1BFFO11HUB007.protection.gbl (10.58.53.117) with Microsoft SMTP Server (TLS) id 15.0.687.1; Thu, 9 May 2013 00:40:09 +0000
Received: from TK5EX14MLTC102.redmond.corp.microsoft.com (131.107.125.37) by BN1AFFO11FD023.mail.protection.outlook.com (10.58.52.83) with Microsoft SMTP Server (TLS) id 15.0.687.1 via Frontend Transport; Thu, 9 May 2013 00:40:09 +0000
Received: from tx2outboundpool.messaging.microsoft.com (157.54.51.81) by mail.microsoft.com (157.54.79.180) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 9 May 2013 00:37:38 +0000
Received: from mail203-tx2-R.bigfish.com (10.9.14.248) by TX2EHSOBE007.bigfish.com (10.9.40.27) with Microsoft SMTP Server id 14.1.225.23; Thu, 9 May 2013 00:36:56 +0000
Received: from mail203-tx2 (localhost [127.0.0.1]) by mail203-tx2-R.bigfish.com (Postfix) with ESMTP id 54C77980619 for <ietf-http-wg@w3.org.FOPE.CONNECTOR.OVERRIDE>; Thu, 9 May 2013 00:36:56 +0000 (UTC)
X-Forefront-Antispam-Report-Untrusted: CIP:157.56.240.21; KIP:(null); UIP:(null); (null); H:BL2PRD0310HT003.namprd03.prod.outlook.com; R:internal; EFV:INT
X-SpamScore: 3
X-BigFish: PS3(zzc85fh4015Izz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz17326ah18c673h8275bh8275dhz31h2a8h668h839hd24hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1bceh1d07h1d0ch1d2eh1d3fh17ej9a9j1155h)
Received-SPF: softfail (mail203-tx2: transitioning domain of microsoft.com does not designate 157.56.240.21 as permitted sender) client-ip=157.56.240.21; envelope-from=OSAMAM@microsoft.com; helo=BL2PRD0310HT003.namprd03.prod.outlook.com ; .outlook.com ;
X-Forefront-Antispam-Report-Untrusted: SFV:SKI; SFS:; DIR:OUT; SFP:; SCL:-1; SRVR:SN2PR03MB045; H:SN2PR03MB046.namprd03.prod.outlook.com; LANG:en;
Received: from mail203-tx2 (localhost.localdomain [127.0.0.1]) by mail203-tx2 (MessageSwitch) id 1368059788303020_10435; Thu, 9 May 2013 00:36:28 +0000 (UTC)
Received: from TX2EHSMHS034.bigfish.com (unknown [10.9.14.250]) by mail203-tx2.bigfish.com (Postfix) with ESMTP id 464EAA80122 for <ietf-http-wg@w3.org>; Thu, 9 May 2013 00:36:28 +0000 (UTC)
Received: from BL2PRD0310HT003.namprd03.prod.outlook.com (157.56.240.21) by TX2EHSMHS034.bigfish.com (10.9.99.134) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 9 May 2013 00:36:27 +0000
Received: from SN2PR03MB045.namprd03.prod.outlook.com (10.255.175.145) by BL2PRD0310HT003.namprd03.prod.outlook.com (10.255.97.38) with Microsoft SMTP Server (TLS) id 14.16.305.3; Thu, 9 May 2013 00:36:26 +0000
Received: from SN2PR03MB046.namprd03.prod.outlook.com (10.255.175.146) by SN2PR03MB045.namprd03.prod.outlook.com (10.255.175.145) with Microsoft SMTP Server (TLS) id 15.0.680.12; Thu, 9 May 2013 00:36:25 +0000
Received: from SN2PR03MB046.namprd03.prod.outlook.com ([169.254.16.164]) by SN2PR03MB046.namprd03.prod.outlook.com ([169.254.16.183]) with mapi id 15.00.0680.012; Thu, 9 May 2013 00:36:25 +0000
From: Osama Mazahir <OSAMAM@microsoft.com>
To: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Thread-Topic: p2: section 5.3.2 (Accept header)
Thread-Index: Ac5MTAWrW0kfNdrSSvONtMpgntddew==
Date: Thu, 09 May 2013 00:36:24 +0000
Message-ID: <b3bef7bc7c2a4cc0b8d2849a38088bfb@SN2PR03MB046.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:4898:1b:2:245e:ca00:498:5bd9]
Content-Type: multipart/alternative; boundary="_000_b3bef7bc7c2a4cc0b8d2849a38088bfbSN2PR03MB046namprd03pro_"
MIME-Version: 1.0
X-OrganizationHeadersPreserved: SN2PR03MB045.namprd03.prod.outlook.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%59$Dn%W3.ORG$RO%2$TLS%6$FQDN%corpf5vips-237160.customer.frontbridge.com$TlsDn%
X-CrossPremisesHeadersPromoted: TK5EX14MLTC102.redmond.corp.microsoft.com
X-CrossPremisesHeadersFiltered: TK5EX14MLTC102.redmond.corp.microsoft.com
X-Forefront-Antispam-Report: CIP:131.107.125.37; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(164054003)(199002)(189002)(80022001)(74876001)(16236675002)(81342001)(74706001)(15202345002)(71186001)(512954002)(47446002)(56816002)(16676001)(31966008)(74502001)(54316002)(74316001)(65816001)(59766001)(56776001)(69226001)(4396001)(74366001)(54356001)(76482001)(20776003)(77982001)(33646001)(51856001)(50986001)(74662001)(6806003)(47976001)(47736001)(63696002)(81542001)(53806001)(49866001)(79102001)(46102001)(3826001)(24736002); DIR:OUT; SFP:; SCL:1; SRVR:BN1BFFO11HUB007; H:TK5EX14MLTC102.redmond.corp.microsoft.com; RD:InfoDomainNonexistent; A:1; MX:1; LANG:en;
X-OriginatorOrg: microsoft.onmicrosoft.com
X-Forefront-PRVS: 08417837C5
Received-SPF: pass client-ip=207.46.163.208; envelope-from=OSAMAM@microsoft.com; helo=na01-bl2-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=0.0
X-W3C-Hub-Spam-Report: HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UaEuY-0002AW-9u a33c231d03f817b8dd4b850438ff7301
X-Original-To: ietf-http-wg@w3.org
Subject: p2: section 5.3.2 (Accept header)
Archived-At: <http://www.w3.org/mid/b3bef7bc7c2a4cc0b8d2849a38088bfb@SN2PR03MB046.namprd03.prod.outlook.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17903
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>
In section 5.3.1, the weight is defined as: ------------ weight = OWS ";" OWS "q=" qvalue qvalue = ( "0" [ "." 0*3DIGIT ] ) / ( "1" [ "." 0*3("0") ] ) ------------ In section 5.3.2, the Accept header grammar is defined as: ------------ Accept = #( media-range [ accept-params ] ) media-range = ( "*/*" / ( type "/" "*" ) / ( type "/" subtype ) ) *( OWS ";" OWS parameter ) accept-params = weight *( accept-ext ) accept-ext = OWS ";" OWS token [ "=" word ] ------------ The grammar seems to imply that the weight is always the first parameter. But then the example shows that the weight is not the first parameter (e.g. the level=2 case): ------------ Accept: text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5 ------------ Which way is correct? Thanks, --Osama.
- p2: section 5.3.2 (Accept header) Osama Mazahir
- Re: p2: section 5.3.2 (Accept header) Mark Nottingham