From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Everaert Subject: Re: Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older Date: Thu, 15 Mar 2018 09:17:18 +0100 Message-ID: References: <48f79a3c-2253-cab3-5410-dbdc7d994356@oracle.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1148ef92c4a47405676f1ec5" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewO4f-0008Rx-Rx for emacs-orgmode@gnu.org; Thu, 15 Mar 2018 04:17:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewO4e-0005Cl-Gd for emacs-orgmode@gnu.org; Thu, 15 Mar 2018 04:17:21 -0400 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:38732) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewO4e-0005By-5I for emacs-orgmode@gnu.org; Thu, 15 Mar 2018 04:17:20 -0400 Received: by mail-wm0-x236.google.com with SMTP id z9so8646194wmb.3 for ; Thu, 15 Mar 2018 01:17:19 -0700 (PDT) In-Reply-To: <48f79a3c-2253-cab3-5410-dbdc7d994356@oracle.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Keshav Kini Cc: emacs-orgmode --001a1148ef92c4a47405676f1ec5 Content-Type: text/plain; charset="UTF-8" I also face the same problem, which forces me to download and install manually the package instead of using the ELPA repo. I would also appreciate a change in behavior of the webserver. Thanks, Roland. On Wed, Mar 14, 2018 at 11:14 PM, Keshav Kini wrote: > Hi, > > This mail is about the Org ELPA repository, not Org itself. Please > let me know if I've mailed the wrong list. > > Inside my corporate network, I must connect to external hosts such as > orgmode.org via an HTTP proxy. Most programs on my machine are able > to access both HTTP and HTTPS URLs through the proxy without any > problem. > > However, it seems that Emacs's URL package, used by many Emacs tools > including package.el, has been unable to properly establish HTTPS > connections over an HTTP proxy for a long time: > > https://debbugs.gnu.org/11788 > > A patch which fixes this problem was written in 2015 by Tao Fang but > is not currently present in any released Emacs version. (It will be > incorporated into Emacs 26, according to the NEWS.26 file in the Emacs > development repository.) > > Meanwhile, the orgmode.org web server is currently responding to HTTPS > requests with an HTTP 301 status, redirecting the client to the > corresponding HTTPS URL, i.e. it tries to force the client to use > HTTPS. This is in contrast with a couple of other major ELPA > repositories, MELPA and GNU ELPA: > > | $ curl -Is http://orgmode.org/elpa/archive-contents | head -1 > | HTTP/1.1 301 Moved Permanently > | $ curl -Is http://melpa.org/packages/archive-contents | head -1 > | HTTP/1.1 200 OK > | $ curl -Is http://elpa.gnu.org/packages/archive-contents | head -1 > | HTTP/1.1 200 OK > > This would seem to mean that anyone using an unpatched non-development > version of Emacs today is unable to connect to the Org ELPA from > behind an HTTP proxy. I gather that this must be a recent change in > behavior, because I have been able to download packages from the Org > ELPA in the past without any trouble. > > Would it be possible for whoever maintains the orgmode.org web server > to reconfigure it so that it responds to HTTP requests directly as it > used to do, instead of redirecting to HTTPS? > > Thanks, > Keshav > > --001a1148ef92c4a47405676f1ec5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I also face the same problem, which forces me to download = and install manually the package instead of using the ELPA repo.

I would also appreciate a change in behavior of the webserver.


Thanks,

Roland.

<= /div>

On Wed, Mar = 14, 2018 at 11:14 PM, Keshav Kini <keshav.kini@oracle.com> wrote:
Hi,

This mail is about the Org ELPA repository, not Org itself.=C2=A0 Please let me know if I've mailed the wrong list.

Inside my corporate network, I must connect to external hosts such as
orgmode= .org via an HTTP proxy.=C2=A0 Most programs on my machine are able
to access both HTTP and HTTPS URLs through the proxy without any
problem.

However, it seems that Emacs's URL package, used by many Emacs tools including package.el, has been unable to properly establish HTTPS
connections over an HTTP proxy for a long time:

=C2=A0 https://debbugs.gnu.org/11788

A patch which fixes this problem was written in 2015 by Tao Fang but
is not currently present in any released Emacs version.=C2=A0 (It will be incorporated into Emacs 26, according to the NEWS.26 file in the Emacs
development repository.)

Meanwhile, the orgmode.org web server is currently responding to HTTPS
requests with an HTTP 301 status, redirecting the client to the
corresponding HTTPS URL, i.e. it tries to force the client to use
HTTPS.=C2=A0 This is in contrast with a couple of other major ELPA
repositories, MELPA and GNU ELPA:

| $ curl -Is http://orgmode.org/elpa/archive-contents | head -1
| HTTP/1.1 301 Moved Permanently
| $ curl -Is
http://melpa.org/packages/archive-conten= ts | head -1
| HTTP/1.1 200 OK
| $ curl -Is http://elpa.gnu.org/packages/archive= -contents | head -1
| HTTP/1.1 200 OK

This would seem to mean that anyone using an unpatched non-development
version of Emacs today is unable to connect to the Org ELPA from
behind an HTTP proxy.=C2=A0 I gather that this must be a recent change in behavior, because I have been able to download packages from the Org
ELPA in the past without any trouble.

Would it be possible for whoever maintains the orgmode.org web server
to reconfigure it so that it responds to HTTP requests directly as it
used to do, instead of redirecting to HTTPS?

Thanks,
=C2=A0 =C2=A0 Keshav


--001a1148ef92c4a47405676f1ec5--