From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: proxy returning empty hits only in emacs Date: Thu, 12 Mar 2015 08:22:28 -0700 (PDT) Message-ID: <0a748e93-f2dc-49fb-8f9d-7e71b9345159@googlegroups.com> References: <59042f4d-4c62-4ca9-b6c0-2d69ac414d8f@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1426173969 16859 80.91.229.3 (12 Mar 2015 15:26:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2015 15:26:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 12 16:26:09 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YW4zv-0001Y3-50 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2015 16:26:07 +0100 Original-Received: from localhost ([::1]:60695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YW4zu-0003qq-FX for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Mar 2015 11:26:06 -0400 X-Received: by 10.236.222.103 with SMTP id s97mr43497620yhp.19.1426173749091; Thu, 12 Mar 2015 08:22:29 -0700 (PDT) X-Received: by 10.140.94.170 with SMTP id g39mr708469qge.34.1426173749047; Thu, 12 Mar 2015 08:22:29 -0700 (PDT) Original-Path: usenet.stanford.edu!hl2no7343247igb.0!news-out.google.com!db6ni50316igc.0!nntp.google.com!hl2no10546382igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <59042f4d-4c62-4ca9-b6c0-2d69ac414d8f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Thu, 12 Mar 2015 15:22:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:210837 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103116 Archived-At: Updated with more info below... On Thursday, 12 March 2015 15:17:01 UTC, Sam Halliday wrote: > 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 Using (defun print-url (url) (url-retrieve url (lambda (a) (print a)))) (print-url "http://google.com") I get the error Contacting host: localhost:3128 # (:error (error connection-failed "failed with code 111 " :host "localhost" :service 3128)) but a telnet session to localhost:3128 is perfectly fine. Very bizarre! Ideas welcome.