Re: Alt-Svc + Proxy Pac

Martin Thomson <martin.thomson@gmail.com> Fri, 03 April 2015 16:54 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 4A9AC1ACD87 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 09:54:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 E3VkXceRqSsN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 3 Apr 2015 09:54:38 -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 D65801ACD88 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 3 Apr 2015 09:54:38 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ye4pN-0007nw-EI for ietf-http-wg-dist@listhub.w3.org; Fri, 03 Apr 2015 16:52:17 +0000
Resent-Date: Fri, 03 Apr 2015 16:52:17 +0000
Resent-Message-Id: <E1Ye4pN-0007nw-EI@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1Ye4pK-0007n9-Jh for ietf-http-wg@listhub.w3.org; Fri, 03 Apr 2015 16:52:14 +0000
Received: from mail-ob0-f173.google.com ([209.85.214.173]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1Ye4pJ-0002Zo-Jg for ietf-http-wg@w3.org; Fri, 03 Apr 2015 16:52:14 +0000
Received: by obbfy7 with SMTP id fy7so92721471obb.2 for <ietf-http-wg@w3.org>; Fri, 03 Apr 2015 09:51:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Oh1VILosWnEoxRcndj1qFKl8CiefrJFknsZj4xT7DEo=; b=iyGEDEC0ggZ4CGQPoKj8SCxMbBYeVjW76CUW+f3kCWZmDfJMP8txvZi1IvwMha0/46 DRU1H19rx0VFbrQoi6X21tz040QmFsWVaSAC1FX29W0/iUG0kTCETczvMxBIKWexzqxJ gazEib9UVg8LrN94iQ/D3lQHMv4V2/eLZhD1pMz7NsZ5exsfqKeZJHHVyIbg8BkTK7w4 97XHxK3uMdwsXlqbvOUJkljb/rADt+8ttx5h0DkuH/OVKIMGDn6YrwUNH/wK7oaoqps8 OOr3guFW2UUhHSOx1Xr8zHXNHOhdDs6YfnUs99uydVNe/ECKrvh3aYmuSX3hnrwed3jB N6nw==
MIME-Version: 1.0
X-Received: by 10.182.210.197 with SMTP id mw5mr4009062obc.26.1428079907169; Fri, 03 Apr 2015 09:51:47 -0700 (PDT)
Received: by 10.202.48.151 with HTTP; Fri, 3 Apr 2015 09:51:47 -0700 (PDT)
In-Reply-To: <CABkgnnWXR7H1oZWLLT7ZhoOtPZjVVDnYaqTYACBkoVQ2scrKJA@mail.gmail.com>
References: <CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com> <CABkgnnWXR7H1oZWLLT7ZhoOtPZjVVDnYaqTYACBkoVQ2scrKJA@mail.gmail.com>
Date: Fri, 03 Apr 2015 09:51:47 -0700
Message-ID: <CABkgnnXJBUxhnSoPYeZaTW1C+RfykoQoO-vw8_nGUc+y3cd3jw@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Ryan Hamilton <rch@google.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.173; envelope-from=martin.thomson@gmail.com; helo=mail-ob0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-6.9
X-W3C-Hub-Spam-Report: AWL=0.897, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1Ye4pJ-0002Zo-Jg a17ea7d0db55739a2ea22dee93690044
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Alt-Svc + Proxy Pac
Archived-At: <http://www.w3.org/mid/CABkgnnXJBUxhnSoPYeZaTW1C+RfykoQoO-vw8_nGUc+y3cd3jw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29234
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>

https://github.com/httpwg/http-extensions/issues/62

On 3 April 2015 at 09:50, Martin Thomson <martin.thomson@gmail.com> wrote:
> Good question.
>
> I think that you put the original requested URL in and let the proxy
> worry about alt-svc compliance.
>
> The proxy is your overriding alternative.  That matches the logic in
> the case where the proxy.pac isn't present and you just have a
> hard-coded proxy that you send all requests to.
>
> Now, if the proxy.pac suggests that direct is acceptable, I think that
> makes it OK to (try to) use the alternative.  If you think of
> proxy.pac as a first level alternative selector, and alt-svc as a
> second-level one, I think that works.
>
>
>
> On 3 April 2015 at 07:35, Ryan Hamilton <rch@google.com> wrote:
>> 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
>>