unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sam Halliday <sam.halliday@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: proxy returning empty hits only in emacs
Date: Thu, 12 Mar 2015 08:16:59 -0700 (PDT)	[thread overview]
Message-ID: <59042f4d-4c62-4ca9-b6c0-2d69ac414d8f@googlegroups.com> (raw)

Hi all,

I installed Debian Jessie over Ubuntu Vervet following a kernel update disaster.

However, following the change emacs (both 24.4) is unable to make use of my proxy.

I have a CNTLM proxy on localhost which does not require additional authentication, e.g.

  export http_proxy=http://localhost:3128/
  export https_proxy=https://localhost:3128/
  export no_proxy="localhost,*.my-company.com"
  export ftp_proxy=${http_proxy}

which is picked up by the X environment, and emacs appears to use it automatically because issuing a `(package-refresh-contents)` gives

  Importing package-keyring.gpg...done
  Using a proxy for http...
  Contacting host: localhost:3128
  Failed to download `gnu' archive.
  Failed to download `melpa' archive.
  nil

However I can't get any more debugging information than this, despite turning on (setq debug-on-error t). I'd like to know *why* it is failing so that I can fix it.

I also tried running url-copy-file:
 
  (url-copy-file "http://google.com/"  "google.html")

but this simply creates an empty file.

The proxy is working fine for everything else on the system (and, except for a few special cases, everything picks up the envvars).

I've even tried this (which is pretty pointless, because emacs is clearly using the correct proxy):

  (setq url-proxy-services
   '(("no_proxy" . "^\\(localhost\\|10.*\\)")
     ("http" . "localhost:3128")
     ("https" . "localhost:3128")))

as expected, it changes nothing.

Is there something else I'm missing?

Best regards,
Sam


             reply	other threads:[~2015-03-12 15:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 15:16 Sam Halliday [this message]
2015-03-12 15:22 ` proxy returning empty hits only in emacs Sam Halliday
2015-03-12 16:23   ` Sam Halliday

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=59042f4d-4c62-4ca9-b6c0-2d69ac414d8f@googlegroups.com \
    --to=sam.halliday@gmail.com \
    --cc=help-gnu-emacs@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.
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).