Re: 1xx response semantics

"Roy T. Fielding" <fielding@gbiv.com> Tue, 05 July 2011 19:40 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 1F07221F85E9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 5 Jul 2011 12:40:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S4-2SyX5urV7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 5 Jul 2011 12:40:07 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 1699721F85E6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 5 Jul 2011 12:40:07 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1QeBTJ-0000WW-TM for ietf-http-wg-dist@listhub.w3.org; Tue, 05 Jul 2011 19:39:49 +0000
Received: from aji.keio.w3.org ([133.27.228.206]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <fielding@gbiv.com>) id 1QeBTD-0000EE-DJ for ietf-http-wg@listhub.w3.org; Tue, 05 Jul 2011 19:39:43 +0000
Received: from caiajhbdccah.dreamhost.com ([208.97.132.207] helo=homiemail-a64.g.dreamhost.com) by aji.keio.w3.org with esmtp (Exim 4.72) (envelope-from <fielding@gbiv.com>) id 1QeBT9-0007CD-PP for ietf-http-wg@w3.org; Tue, 05 Jul 2011 19:39:42 +0000
Received: from homiemail-a64.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a64.g.dreamhost.com (Postfix) with ESMTP id 8DBFB438088 for <ietf-http-wg@w3.org>; Tue, 5 Jul 2011 12:39:13 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= gbiv.com; b=Dj7Hw4L/3q+NmBqc2EkScN7ckGgkDVwTVHrsKLwv3IZbcjpIZFOf mAC9eGJ1h71IOEatweIzHA6Isl6bX/5BsALCN6ZIvDlMIAtSgew257FtOIdbJZ6v ZgJCvGEOM/TtsLJJW5rTzUEzSTVP++UMlZGCLjnCTnGAHsroxUh8G7A=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=y5c2f6yaMdyXGuvNnK7f2yhMK8Y=; b=LpnOV30N5z0jJHTyM7zI2QKraCfb JNxQUr3cpAYB+bioeoV1eSHIquzrA9OGU+cKTKu2ciYxCv4EV8iyv3GwNt1/EZ5h 63wh6Xo62m8sioabdRyxv4ZVPBb0laKnFjE1Qc8VvFVeCTvEjlNMkmAhe2VUrK5v BK/EGKKWxBttvIw=
Received: from [10.134.89.86] (unknown [75.103.10.98]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a64.g.dreamhost.com (Postfix) with ESMTPSA id 5CADA438080 for <ietf-http-wg@w3.org>; Tue, 5 Jul 2011 12:39:13 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Apple Message framework v1084)
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <g4k417lg7j4qkpbdiihl1g45st4v2kc35i@hive.bjoern.hoehrmann.de>
Date: Tue, 05 Jul 2011 12:39:12 -0700
Content-Transfer-Encoding: 7bit
Message-Id: <DD033956-66D2-4B4A-B059-D9A3D4C964B8@gbiv.com>
References: <713362A0-3316-4B4C-B154-581CB32B8A9B@mnot.net> <g4k417lg7j4qkpbdiihl1g45st4v2kc35i@hive.bjoern.hoehrmann.de>
To: httpbis Group <ietf-http-wg@w3.org>
X-Mailer: Apple Mail (2.1084)
Received-SPF: none client-ip=208.97.132.207; envelope-from=fielding@gbiv.com; helo=homiemail-a64.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-2.0
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: aji.keio.w3.org 1QeBT9-0007CD-PP 2ce11ae73a4b67a819b20f57dbc9eba3
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 1xx response semantics
Archived-At: <http://www.w3.org/mid/DD033956-66D2-4B4A-B059-D9A3D4C964B8@gbiv.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/10899
X-Loop: ietf-http-wg@w3.org
Sender: ietf-http-wg-request@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>
Resent-Message-Id: <E1QeBTJ-0000WW-TM@frink.w3.org>
Resent-Date: Tue, 05 Jul 2011 19:39:49 +0000

> One (of many) of the issues with 1xx responses is that people don't know
> how to surface two responses to one request in APIs and tools. 

For the most part, there is no reason to surface them.  The only tools
that would are the command-line tools, which typically have a --verbose mode.

> I think we could make things a bit easier for folks if we stated that
> the headers in a 1xx response are semantically not significant; i.e.,
> it's OK for APIs, etc. to drop them on the floor, because the only
> information is in the status code.

They are significant.  I don't understand why anyone would think they
are not significant -- the fields are the only way to carry information
in the interim response other than the status code.

> This would mean that people shouldn't put headers on a 1xx response and
> expect applications to see them -- which I think is already the case
> today.

No, it is not the case today.  There just isn't a large scale need for
the 1xx response handling to be implemented *today* in mainstream apps.
They can be ignored by any client that isn't deliberately choosing to
use them for upgrade or continue.   I have not seen much use for the
1xx progress indicator, partly because of the chicken-and-egg problem
with browsers.  Those applications do not ignore the header fields.
And we have no idea what 1xx codes will be introduced in the future.

....Roy