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 16F9B1ACE77
 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>;
 Fri,  3 Apr 2015 11:07:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.289
X-Spam-Level: 
X-Spam-Status: No, score=-6.289 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, 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 facFrdm6zZ1z
 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>;
 Fri,  3 Apr 2015 11:07:25 -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 BABA41ACE8D
 for <httpbisa-archive-bis2Juki@lists.ietf.org>;
 Fri,  3 Apr 2015 11:07:25 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80)
 (envelope-from <ietf-http-wg-request@listhub.w3.org>)
 id 1Ye5wQ-00034c-Pg
 for ietf-http-wg-dist@listhub.w3.org; Fri, 03 Apr 2015 18:03:38 +0000
Resent-Date: Fri, 03 Apr 2015 18:03:38 +0000
Resent-Message-Id: <E1Ye5wQ-00034c-Pg@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39])
 by frink.w3.org with esmtp (Exim 4.80)
 (envelope-from <mcmanus@ducksong.com>) id 1Ye5wM-00033I-Tq
 for ietf-http-wg@listhub.w3.org; Fri, 03 Apr 2015 18:03:34 +0000
Received: from li629-102.members.linode.com ([192.155.95.102]
 helo=linode64.ducksong.com) by maggie.w3.org with esmtp (Exim 4.80)
 (envelope-from <mcmanus@ducksong.com>) id 1Ye5wL-0004kd-T7
 for ietf-http-wg@w3.org; Fri, 03 Apr 2015 18:03:34 +0000
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by linode64.ducksong.com (Postfix) with ESMTPSA id B66B33A05C
 for <ietf-http-wg@w3.org>; Fri,  3 Apr 2015 14:03:09 -0400 (EDT)
Received: by qcbii10 with SMTP id ii10so71068584qcb.2
 for <ietf-http-wg@w3.org>; Fri, 03 Apr 2015 11:03:09 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.140.107.165 with SMTP id h34mr4025238qgf.71.1428084189408;
 Fri, 03 Apr 2015 11:03:09 -0700 (PDT)
Received: by 10.140.94.7 with HTTP; Fri, 3 Apr 2015 11:03:09 -0700 (PDT)
In-Reply-To: <CABkgnnXJBUxhnSoPYeZaTW1C+RfykoQoO-vw8_nGUc+y3cd3jw@mail.gmail.com>
References: <CAJ_4DfS5J0k-G_fY46R=8jJDbppC8EfvAmLCaeccPFudOfFM0g@mail.gmail.com>
 <CABkgnnWXR7H1oZWLLT7ZhoOtPZjVVDnYaqTYACBkoVQ2scrKJA@mail.gmail.com>
 <CABkgnnXJBUxhnSoPYeZaTW1C+RfykoQoO-vw8_nGUc+y3cd3jw@mail.gmail.com>
Date: Fri, 3 Apr 2015 14:03:09 -0400
Message-ID: <CAOdDvNqzmTodqh=KW2juZ6Ji6ex-tEtE04GLW+6iYy4Q2BVz=w@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Ryan Hamilton <rch@google.com>, "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary=001a1139594ed1b7450512d5c2b5
Received-SPF: none client-ip=192.155.95.102; envelope-from=mcmanus@ducksong.com;
 helo=linode64.ducksong.com
X-W3C-Hub-Spam-Status: No, score=-4.2
X-W3C-Hub-Spam-Report: AWL=-2.167, HTML_MESSAGE=0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1Ye5wL-0004kd-T7 1bd0b28e395cbcf407f2428247d57609
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Alt-Svc + Proxy Pac
Archived-At: <http://www.w3.org/mid/CAOdDvNqzmTodqh=KW2juZ6Ji6ex-tEtE04GLW+6iYy4Q2BVz=w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29236
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>

--001a1139594ed1b7450512d5c2b5
Content-Type: text/plain; charset=UTF-8

I agree with martin's suggested resolution.

fwiw the original netscape documentation says that the host argument is the
host extracted from the url for convenience (what else could it say?). I
think making existing pacs do indeterminate things based on which argument
they are looking at is a mistake.

separately - there has been some talk about standardizing modern pac - One
thing we could do in that space is make the list of alternatives available
to the PAC file though a separate variable, argument, or helper function.
The PAC is really about routing afterall. It could not only select a proxy
with that information, it could also implement alternate selection (through
some new return mechanism) and return DIRECT.

-P


On Fri, Apr 3, 2015 at 12:51 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> 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
> >>
>
>

--001a1139594ed1b7450512d5c2b5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>I agree with martin&#39;s suggested resolut=
ion.<br><br></div><div>fwiw the original netscape documentation says that t=
he host argument is the host extracted from the url for convenience (what e=
lse could it say?). I think making existing pacs do indeterminate things ba=
sed on which argument they are looking at is a mistake.<br></div><br></div>=
<div>separately - there has been some talk about standardizing modern pac -=
 One thing we could do in that space is make the list of alternatives avail=
able to the PAC file though a separate variable, argument, or helper functi=
on. The PAC is really about routing afterall. It could not only select a pr=
oxy with that information, it could also implement alternate selection (thr=
ough some new return mechanism) and return DIRECT.<br></div><br></div>-P<br=
><div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_qu=
ote">On Fri, Apr 3, 2015 at 12:51 PM, Martin Thomson <span dir=3D"ltr">&lt;=
<a href=3D"mailto:martin.thomson@gmail.com" target=3D"_blank">martin.thomso=
n@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href=
=3D"https://github.com/httpwg/http-extensions/issues/62" target=3D"_blank">=
https://github.com/httpwg/http-extensions/issues/62</a><br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
On 3 April 2015 at 09:50, Martin Thomson &lt;<a href=3D"mailto:martin.thoms=
on@gmail.com">martin.thomson@gmail.com</a>&gt; wrote:<br>
&gt; Good question.<br>
&gt;<br>
&gt; I think that you put the original requested URL in and let the proxy<b=
r>
&gt; worry about alt-svc compliance.<br>
&gt;<br>
&gt; The proxy is your overriding alternative.=C2=A0 That matches the logic=
 in<br>
&gt; the case where the proxy.pac isn&#39;t present and you just have a<br>
&gt; hard-coded proxy that you send all requests to.<br>
&gt;<br>
&gt; Now, if the proxy.pac suggests that direct is acceptable, I think that=
<br>
&gt; makes it OK to (try to) use the alternative.=C2=A0 If you think of<br>
&gt; proxy.pac as a first level alternative selector, and alt-svc as a<br>
&gt; second-level one, I think that works.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 3 April 2015 at 07:35, Ryan Hamilton &lt;<a href=3D"mailto:rch@goog=
le.com">rch@google.com</a>&gt; wrote:<br>
&gt;&gt; Howdy Folks,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m curious how Alt-Svc is expect to work with Proxy PAC files=
. Consider the<br>
&gt;&gt; scenario where <a href=3D"http://www.example.com/" target=3D"_blan=
k">http://www.example.com/</a> has an Alt-Svc that specified http/2<br>
&gt;&gt; on <a href=3D"http://mail.example.com:443" target=3D"_blank">mail.=
example.com:443</a>. When the browser decides to make an http/2 (over<br>
&gt;&gt; TLS) connection to <a href=3D"http://mail.example.com" target=3D"_=
blank">mail.example.com</a>, on behalf of <a href=3D"http://www.example.com=
" target=3D"_blank">http://www.example.com</a>,<br>
&gt;&gt; what URL and host should the browser pass to the PAC file&#39;s<br=
>
&gt;&gt; FindProxyForURL() method?<br>
&gt;&gt;<br>
&gt;&gt; I can argue both cases.<br>
&gt;&gt;<br>
&gt;&gt; * It should pass in the requested url (<a href=3D"http://www.examp=
le.com/" target=3D"_blank">http://www.example.com/</a>) because that<br>
&gt;&gt; is the URL being requested. There is no other URL.<br>
&gt;&gt; * It should pass in a pseudo url (<a href=3D"https://mail.exmaple.=
com/" target=3D"_blank">https://mail.exmaple.com/</a>) because, for<br>
&gt;&gt; example, access to <a href=3D"http://mail.example.com" target=3D"_=
blank">mail.example.com</a> may well requires use of a proxy to<br>
&gt;&gt; access. By passing in the request URL, the PAC file does not have =
the<br>
&gt;&gt; opportunity to send the connection to the correct proxy.<br>
&gt;&gt;<br>
&gt;&gt; Thoughts?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt; Ryan<br>
&gt;&gt;<br>
<br>
</div></div></blockquote></div><br></div>

--001a1139594ed1b7450512d5c2b5--

