emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Keshav Kini <keshav.kini@oracle.com>
To: emacs-orgmode@gnu.org
Subject: Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older
Date: Wed, 14 Mar 2018 15:14:41 -0700	[thread overview]
Message-ID: <48f79a3c-2253-cab3-5410-dbdc7d994356@oracle.com> (raw)

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

             reply	other threads:[~2018-03-14 22:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-14 22:14 Keshav Kini [this message]
2018-03-15  8:17 ` Connecting to Org ELPA via an HTTP proxy from Emacs 25 and older Roland Everaert
2018-03-20 23:27   ` Bastien
2018-03-21  9:36     ` Roland Everaert
2018-03-22 20:32     ` Keshav Kini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48f79a3c-2253-cab3-5410-dbdc7d994356@oracle.com \
    --to=keshav.kini@oracle.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).