Re: p2: Content-Length in HEAD responses

Mark Nottingham <mnot@mnot.net> Sat, 20 April 2013 10:02 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 B112121F8629 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 03:02:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.434
X-Spam-Level:
X-Spam-Status: No, score=-10.434 tagged_above=-999 required=5 tests=[AWL=0.165, BAYES_00=-2.599, 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 omF2YMTAcTwZ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 03:02:12 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id DA05821F861B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 20 Apr 2013 03:02:11 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UTUbv-00051P-77 for ietf-http-wg-dist@listhub.w3.org; Sat, 20 Apr 2013 10:01:35 +0000
Resent-Date: Sat, 20 Apr 2013 10:01:35 +0000
Resent-Message-Id: <E1UTUbv-00051P-77@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1UTUbr-00050k-Tu for ietf-http-wg@listhub.w3.org; Sat, 20 Apr 2013 10:01:31 +0000
Received: from mxout-08.mxes.net ([216.86.168.183]) by maggie.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1UTUbq-0007ek-U6 for ietf-http-wg@w3.org; Sat, 20 Apr 2013 10:01:31 +0000
Received: from [192.168.1.80] (unknown [118.209.190.66]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id A080C509B8; Sat, 20 Apr 2013 06:01:08 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <20130420092254.GT26517@1wt.eu>
Date: Sat, 20 Apr 2013 20:01:04 +1000
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <F848B7D9-3ABC-49B2-9064-B1F01D78E84B@mnot.net>
References: <6EAF151D-EBE7-456D-B5D1-A35933CCDCF8@mnot.net> <20130420090647.GQ26517@1wt.eu> <4C6961E9-2EFC-418F-81BF-C7F0E31A1056@mnot.net> <20130420092254.GT26517@1wt.eu>
To: Willy Tarreau <w@1wt.eu>
X-Mailer: Apple Mail (2.1503)
Received-SPF: pass client-ip=216.86.168.183; envelope-from=mnot@mnot.net; helo=mxout-08.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.250, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UTUbq-0007ek-U6 3d56ea6ae630b6b9d9b84ae24ccd93e0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p2: Content-Length in HEAD responses
Archived-At: <http://www.w3.org/mid/F848B7D9-3ABC-49B2-9064-B1F01D78E84B@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17423
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>

On 20/04/2013, at 7:22 PM, Willy Tarreau <w@1wt.eu> wrote:

> On Sat, Apr 20, 2013 at 07:11:57PM +1000, Mark Nottingham wrote:
>> 
>> On 20/04/2013, at 7:06 PM, Willy Tarreau <w@1wt.eu> wrote:
>> 
>>> On Sat, Apr 20, 2013 at 06:41:01PM +1000, Mark Nottingham wrote:
>>>> p2 4.3.2 says:
>>>> 
>>>>   Aside from the payload header fields (Section 3.3), the server SHOULD
>>>>   send the same header fields in response to a HEAD request as it would
>>>>   have sent if the request had been a GET.
>>>> 
>>>> The payload header fields include Content-Length, which in my testing is
>>>> pretty common in HEAD responses. Was this an oversight, or intentional?
>>> 
>>> In my opinion it was intentional, as it's the only way for a client
>>> to know the payload size in advance without retrieving the file.
>> 
>> I was asking if it was intentional that, as currently specified, we say that
>> C-L should be *omitted* from HEAD responses.
> 
> This is not what I'm seeing in p1/3.3.2 :
> 
>   A server MAY send a Content-Length header field in a response to a
>   HEAD request (Section 4.3.2 of [Part2]); a server MUST NOT send
>   Content-Length in such a response unless its field-value equals the
>   decimal number of octets that would have been sent in the payload
>   body of a response if the same request had used the GET method.
> 
> Maybe I'm missing something or there are inconsistencies with other parts ?


I think it's an inconsistency between that and <https://svn.tools.ietf.org/svn/wg/httpbis/draft-ietf-httpbis/latest/p2-semantics.html#HEAD>.

Let's call this editorial and have the editors flip it back to design if they disagree.


--
Mark Nottingham   http://www.mnot.net/