From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keshav Kini Subject: Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older Date: Wed, 14 Mar 2018 15:14:41 -0700 Message-ID: <48f79a3c-2253-cab3-5410-dbdc7d994356@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewEfz-0000yy-8D for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 18:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewEfu-00052Y-5S for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 18:15:15 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ewEft-0004q9-Q6 for emacs-orgmode@gnu.org; Wed, 14 Mar 2018 18:15:10 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2EMCAkx183776 for ; Wed, 14 Mar 2018 22:14:44 GMT Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2gqbn1g5p0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Mar 2018 22:14:44 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2EMEhsL001990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 14 Mar 2018 22:14:43 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2EMEh4r032499 for ; Wed, 14 Mar 2018 22:14:43 GMT Content-Language: en-US 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: emacs-orgmode@gnu.org 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