Alt-Svc + Proxy Pac

Ryan Hamilton <rch@google.com> Fri, 03 April 2015 14:39 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B17151A9048 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 07:39:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.389
X-Spam-Level:
X-Spam-Status: No, score=-6.389 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 M-2B1FDSK8wV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 07:39:47 -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 496B61A9102 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 3 Apr 2015 07:39:42 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ye2h8-0002WH-Vj for ietf-http-wg-dist@listhub.w3.org; Fri, 03 Apr 2015 14:35:39 +0000
Resent-Date: Fri, 03 Apr 2015 14:35:38 +0000
Resent-Message-Id: <E1Ye2h8-0002WH-Vj@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <rch@google.com>) id 1Ye2h0-0002VR-VW for ietf-http-wg@listhub.w3.org; Fri, 03 Apr 2015 14:35:30 +0000
Received: from mail-yh0-f49.google.com ([209.85.213.49]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <rch@google.com>) id 1Ye2gz-0005l6-NR for ietf-http-wg@w3.org; Fri, 03 Apr 2015 14:35:30 +0000
Received: by yhla23 with SMTP id a23so13743138yhl.1 for <ietf-http-wg@w3.org>; Fri, 03 Apr 2015 07:35:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LBhQCZZRY4KW5V+0I8t7N962WzQc2RSKEUc2C1ghtFY=; b=VnzHG1ZCvtCXknALEdfyIjO4at9P3BiSo6nWvKWsvAsb0u5oV+aMWh+zpjOP6avL+J 7Kv3anxuHUKJxx6el7xGD963p+yaldCULQrGhNTmdzITzeHyQRnCqgjTVhg6MFZE8BQX f68KF3aa2mxF/MyVDcu2klRuvKBEuoRR3lHy0sWpQKvRhzTPAhOXXUODKE0bf+7iMm69 TeZh6PPmnfO9BiHHHVOpbvqGsPxyS0IxXV3ujwemGnXSUBOBZU7EdHSoNUYBpbfICyrY TI8YILtyECoO+RjERBHDso/gfKZaLEOe7rFpGcG3gY17wc4cguyW0Af1tK1uQiuITXzq 9dEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=LBhQCZZRY4KW5V+0I8t7N962WzQc2RSKEUc2C1ghtFY=; b=Kr4PKZplsv312AyiNimAQSkwgOhGzuhkf55AI475hU+uuT3kp73Xm5coo4Y894U8yy QaWSM72Hfe3DfC6c3pBZWOkwXaJYMbIG9+apCQNxfJRsZUfUqFqho5mohUUxd7OFGYkC kzDEnSEIDcSA+AbRzyQjMIWGiI/glrAbNmsY2irgZ40ayYdvL9pfXFYwO/upWZ014R9F C+b2LTuPDpnq9qvDRIJk5qMnp1HuwqBGXgIY8Q5qTY6roMSJKsT/Qh5mdntpJ2gPECt/ h0DPg02aFv5plTYNfMS6riQOKpQYluql3R13jZzquQrr3dhjComx6FC37yQngj3l0Hoj t2nA==
X-Gm-Message-State: ALoCoQn3J9xuMvA7BC/7TBAcHGsvonLHQ6Do25tEpJEsxbcWiKdHyHwNXmlvcufgbDh2ZszVwwZT
MIME-Version: 1.0
X-Received: by 10.52.112.36 with SMTP id in4mr1477547vdb.3.1428071703406; Fri, 03 Apr 2015 07:35:03 -0700 (PDT)
Received: by 10.52.169.202 with HTTP; Fri, 3 Apr 2015 07:35:03 -0700 (PDT)
Date: Fri, 03 Apr 2015 07:35:03 -0700
Message-ID: <CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com>
From: Ryan Hamilton <rch@google.com>
To: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="bcaec548a9f39897910512d2da14"
Received-SPF: pass client-ip=209.85.213.49; envelope-from=rch@google.com; helo=mail-yh0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-4.4
X-W3C-Hub-Spam-Report: AWL=-1.629, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1Ye2gz-0005l6-NR 0e454b5d765a66872d5bd6ee679f8cb6
X-Original-To: ietf-http-wg@w3.org
Subject: Alt-Svc + Proxy Pac
Archived-At: <http://www.w3.org/mid/CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29232
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>

Howdy Folks,

I'm curious how Alt-Svc is expect to work with Proxy PAC files. Consider
the scenario where http://www.example.com/ has an Alt-Svc that specified
http/2 on mail.example.com:443. When the browser decides to make an http/2
(over TLS) connection to mail.example.com, on behalf of
http://www.example.com, what URL and host should the browser pass to the
PAC file's FindProxyForURL() method?

I can argue both cases.

* It should pass in the requested url (http://www.example.com/) because
that is the URL being requested. There is no other URL.
* It should pass in a pseudo url (https://mail.exmaple.com/) because, for
example, access to mail.example.com may well requires use of a proxy to
access. By passing in the request URL, the PAC file does not have the
opportunity to send the connection to the correct proxy.

Thoughts?

Cheers,

Ryan