Re: updated http 1.1 rfcs and hop-by-hop

Martijn Faassen <faassen@startifact.com> Mon, 18 August 2014 08:43 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44CFC1A035D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 Aug 2014 01:43:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.948
X-Spam-Level:
X-Spam-Status: No, score=-6.948 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 kvDNOZCdPFvK for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 18 Aug 2014 01:43:21 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69CF81A0353 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 18 Aug 2014 01:43:21 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XJITs-0002JH-Q0 for ietf-http-wg-dist@listhub.w3.org; Mon, 18 Aug 2014 08:39:56 +0000
Resent-Date: Mon, 18 Aug 2014 08:39:56 +0000
Resent-Message-Id: <E1XJITs-0002JH-Q0@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <martijn.faassen@gmail.com>) id 1XJITR-0002Gz-2X for ietf-http-wg@listhub.w3.org; Mon, 18 Aug 2014 08:39:29 +0000
Received: from mail-oi0-f44.google.com ([209.85.218.44]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martijn.faassen@gmail.com>) id 1XJITP-0001jE-Ci for ietf-http-wg@w3.org; Mon, 18 Aug 2014 08:39:29 +0000
Received: by mail-oi0-f44.google.com with SMTP id x69so3348451oia.3 for <ietf-http-wg@w3.org>; Mon, 18 Aug 2014 01:39:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=y+8k8vjrbqs+odQ627416c0aF0dJJb/4bDG+wwBBR5M=; b=1F4qaqFceM7hT6gszfhZszR0j0RVjxKPtY2VHHok8sERlcCPrw4Y2MXgDPRaD9fZll +ELoUe1Iwjf9sPOgYLnrfn85vniN87xzvbrOhHgBdMEU6ci8g6yREahFDUPFl59Of8aK /iUWLsX3TV6A1eJJVyjeNTzgl9rHunG8A6YWK4kzleZJOpzThYOwqDvg9HZj4q8moK0h RhdQKdrGHDamdc/eX1dwx4COU3p0dbzUCQgNfBiqfmWTO5sKoP7zHQ0e6JbGy+4cs0FR 2gMeixr6s9gwHa6E/FQZ2+xZ1c8FEPHMIdxV5jvy15rpCdjn3hJT1gvYPaQLohi7zGqp 9T+w==
MIME-Version: 1.0
X-Received: by 10.182.209.101 with SMTP id ml5mr35994794obc.2.1408351141554; Mon, 18 Aug 2014 01:39:01 -0700 (PDT)
Sender: martijn.faassen@gmail.com
Received: by 10.182.106.99 with HTTP; Mon, 18 Aug 2014 01:39:01 -0700 (PDT)
In-Reply-To: <CAGT4ZFhOmN6N9zT0Z=edx6_kMUPczOc4zVNjQzDk5Bw3DFjtww@mail.gmail.com>
References: <CAGT4ZFhOmN6N9zT0Z=edx6_kMUPczOc4zVNjQzDk5Bw3DFjtww@mail.gmail.com>
Date: Mon, 18 Aug 2014 10:39:01 +0200
X-Google-Sender-Auth: 9-akHg3HqaPzGkDFAcAJG8Tkl7E
Message-ID: <CAGT4ZFjt__Ct2n06gWJ5A2yLU0ZjTkSR19JG02PJ0W4SzRr=nQ@mail.gmail.com>
From: Martijn Faassen <faassen@startifact.com>
To: ietf-http-wg@w3.org
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.218.44; envelope-from=martijn.faassen@gmail.com; helo=mail-oi0-f44.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.768, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1XJITP-0001jE-Ci 9b26dd6bbf4e6a2d6f15352b54528c78
X-Original-To: ietf-http-wg@w3.org
Subject: Re: updated http 1.1 rfcs and hop-by-hop
Archived-At: <http://www.w3.org/mid/CAGT4ZFjt__Ct2n06gWJ5A2yLU0ZjTkSR19JG02PJ0W4SzRr=nQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/26637
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>

Hi there,

No answer to my question at all so far? Perhaps it's the wrong list?
Any feedback would be appreciated!

Thank you!

Martijn


On Mon, Aug 11, 2014 at 4:42 PM, Martijn Faassen <faassen@startifact.com> wrote:
> Hi there,
>
> [I hope this question reaches the right mailing list]
>
> I'm trying to find the equivalent of RFC 2616, section 13.5.1 in the
> new specs. This section defines those header fields considered
> hop-by-hop, i.e.:
>
>       - Connection
>       - Keep-Alive
>       - Proxy-Authenticate
>       - Proxy-Authorization
>       - TE
>       - Trailers
>       - Transfer-Encoding
>       - Upgrade
>
> I need such a list in order to implement a Python WSGI-based proxy.
> See PEP 3333:
>
> http://legacy.python.org/dev/peps/pep-3333/#other-http-features
>
>   However, because WSGI servers and applications do not communicate
> via HTTP, what
>   RFC 2616 calls "hop-by-hop" headers do not apply to WSGI internal
> communications.
>   WSGI applications must not generate any "hop-by-hop" headers [4],
> attempt to use
>   HTTP features that would require them to generate such headers, or
> rely on the content
>   of any incoming "hop-by-hop" headers in the environ dictionary. WSGI
> servers must
>   handle any supported inbound "hop-by-hop" headers on their own, such
> as by decoding
>   any inbound Transfer-Encoding, including chunked encoding if applicable.
>
> So, a WSGI proxy has to remove any hop-by-hop headers from the
> response of the host it is proxying, and not pass them along. WSGI has
> its own iterator based mechanism to support chunking, and a WSGI
> server can then add the appropriate headers.
>
> In section 13.5.1 of RFC 2616 these hop-by-hop headers are specified,
> but I can't find the equivalent in the newer RFCs.
>
> I do find section 6.1 in rfc7230, so I think this means that a
> conforming server would list related headers in the Connection. But
> what about Transfer-Encoding, for instance? A server that sends
> "Connection: close" may not send Transfer-Encoding?
>
> It's certainly possible that I'm missing something. I haven't read the
> complete specs yet. But any guidance would be appreciated.
>
> Regards,
>
> Martijn