From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Collin Day Newsgroups: gmane.emacs.bugs Subject: bug#35969: 26.2, Excorporate Date: Tue, 9 Jul 2019 16:09:04 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d03be058d46c62a" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="92092"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Andreas Schwab , 35969@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 10 00:08:46 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkyI1-000Nlc-2w for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2019 00:08:45 +0200 Original-Received: from localhost ([::1]:56468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkyHF-00073B-HG for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2019 18:07:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40325) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkyGa-00070w-PR for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 18:07:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkyGU-0003Td-V6 for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 18:07:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkyGM-0003Qc-DA for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 18:07:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hkyGM-0002Hj-7H for bug-gnu-emacs@gnu.org; Tue, 09 Jul 2019 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Collin Day Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2019 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35969 X-GNU-PR-Package: emacs Original-Received: via spool by 35969-submit@debbugs.gnu.org id=B35969.15627100058760 (code B ref 35969); Tue, 09 Jul 2019 22:07:02 +0000 Original-Received: (at 35969) by debbugs.gnu.org; 9 Jul 2019 22:06:45 +0000 Original-Received: from localhost ([127.0.0.1]:34437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkyG4-0002HE-DK for submit@debbugs.gnu.org; Tue, 09 Jul 2019 18:06:45 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:35779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkyG2-0002H0-Nr for 35969@debbugs.gnu.org; Tue, 09 Jul 2019 18:06:43 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id y4so403610wrm.2 for <35969@debbugs.gnu.org>; Tue, 09 Jul 2019 15:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l6VG9NyfPMX3hKarMvxCnARL/3DXmqn9Ud30285RF1w=; b=bPvAphFz3nEbzAdWW6MT3Eb2eSQZUt8Fw5qayz/xK740HVAtN+lBliE8wdZnbFViyr G6gwHdOcbpfJxfcwguo2F1tu6Ti1YBNP6wqFXXZm/p1R7yiGQgDvUwRgbeEdTTQAv6NU 9S67YyzF46Q/UExsykh+x3bbWY8UpMmjh2PS313402PwfciaZBRsfpOcS70eNkWqmhmB Kw5PRmphRnjbfqMR91AhgdMEMKniP2oZO7fAphCISiSPwPd+XEMfVSbONjrjygTHWnaH 2AX1gABGSwU0gA4RwCEG0rjZA8ezoR+TyHtNHx1dUW2LhXo9oCRFwtaGX3FVvugkk9ls 3QRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l6VG9NyfPMX3hKarMvxCnARL/3DXmqn9Ud30285RF1w=; b=pKRWRI7UiqRZqwX6b2jOI9C/KB2BcdjaHzlLDHpgEgTZB/dpc7mBBSW9QydrlohCo9 eRMj3pKP60Mqk1+KIZA5f6kXmEhOl0vInYvfDBYFnUMuGwdzh+PUSV0p+lMu57RBB9F3 UjU+j/jp+0HRKB3FdEII7cYxUCtDGhgXkrvxGMerzCdUMi5yUgzjo9oFABv1y1CScD9q 2ofdVSGhtN+leTYA8tB18fNzDw+58pPFx33qqe8cxSyhTS8eQ9okIY/uf3XYR5W7EqMU ViJ0uX9wCbXGt0G7322Z7YwYM9Ll3Yccoe+ei9n6Dluam+Nf1Z8tXo1iJjGhmqKWaxaf ZsDQ== X-Gm-Message-State: APjAAAXSGgLLWEBGeujl02P1yVpICZE063ogNi172FPjFkFCASCk7eGn 4oelo/POVgWm0QEy7j6mh7TlgwnfT/I2aFDk4O4= X-Google-Smtp-Source: APXvYqzKYMmZI1Yaq+jNxtXx8J2vmk7B4z8Emu8RZtAWARBl7tqreiV1d690n0Pesm9tgNuGBkJLiliopQvBx71rIXA= X-Received: by 2002:a5d:5692:: with SMTP id f18mr27190952wrv.104.1562709996666; Tue, 09 Jul 2019 15:06:36 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162559 Archived-At: --0000000000003d03be058d46c62a Content-Type: text/plain; charset="UTF-8" Sorry, I have not had the chance to. A lot has been going on at my place of employment. It has crossed my mind, and as soon as I have a chance, I will try what you suggested above. Thanks, sorry for the inconvenience. On Tue, Jul 9, 2019, 3:53 PM Thomas Fitzsimmons wrote: > Hi, > > Were you able to complete building Emacs? I'd like to know if my patch > is needed on top of Andreas's to make Excorporate work through your > proxy. > > I'm not sure why the built version would interfere with the current > installation. If you were doing "make install" to a common prefix, that > might explain it. Instead you can try something like this: > > cd emacs-master [your github.com checkout] > make > mkdir test-home > HOME=`pwd`/test-home ./src/emacs -Q > > That will ensure you're only running the built Emacs, and completely > ignoring the packages installed in your home directory. > > Thomas > > "tenspd137 ." writes: > > > I haven't tried the first item on the list yet - ie reloading Andreas' > > function. i have tried to build emacs from > > https://github.com/emacs-mirror/emacs.git because I can't reach the > > official repo from my firewall for whatever reason. I am sure it is > > something here. Anyway, I was having problems because my built > > version (27.0.x) was getting seemingly mixed up with my current > > installation. I can try again later, but right now things are pretty > > busy at work. > > > > Thanks. > > > > On Tue, Jun 18, 2019 at 10:26 PM Thomas Fitzsimmons > wrote: > >> > >> Hi, > >> > >> "tenspd137 ." writes: > >> > >> > So - I am not sure if I did it correctly, but I copied this function > >> > with Andreas' changes into a file: > >> > > >> > (defun url-https-proxy-after-change-function (_st _nd _length) > >> > (let* ((process-buffer (current-buffer)) > >> > (proc (get-buffer-process process-buffer))) > >> > (goto-char (point-min)) > >> > (when (re-search-forward "^\r?\n" nil t) > >> > (backward-char 1) > >> > ;; Saw the end of the headers > >> > (setq url-http-end-of-headers (set-marker (make-marker) > (point))) > >> > (url-http-parse-response) > >> > (cond > >> > ((null url-http-response-status) > >> > ;; We got back a headerless malformed response from the > >> > ;; server. > >> > (url-http-activate-callback) > >> > (error "Malformed response from proxy, fail!")) > >> > ((= url-http-response-status 200) > >> > (if (gnutls-available-p) > >> > (condition-case e > >> > (let ((tls-connection (gnutls-negotiate > >> > :process proc > >> > :hostname (url-host > url-current-object) > >> > :verify-error nil))) > >> > ;; check certificate validity > >> > (setq tls-connection > >> > (nsm-verify-connection tls-connection > >> > (url-host > url-current-object) > >> > (url-port > url-current-object))) > >> > (with-current-buffer process-buffer (erase-buffer)) > >> > (set-process-buffer tls-connection process-buffer) > >> > (setq url-http-after-change-function > >> > 'url-http-wait-for-headers-change-function) > >> > (set-process-filter tls-connection > 'url-http-generic-filter) > >> > (process-send-string tls-connection > >> > ;; Use the non-proxy form of > the request > >> > (let (url-http-proxy) > >> > (url-http-create-request)))) > >> > (gnutls-error > >> > (url-http-activate-callback) > >> > (error "gnutls-error: %s" e)) > >> > (error > >> > (url-http-activate-callback) > >> > (error "error: %s" e))) > >> > (error "error: gnutls support needed!"))) > >> > (t > >> > (url-http-debug "error response: %d" url-http-response-status) > >> > (url-http-activate-callback)))))) > >> > > >> > and then loaded it before running excorporate. After that, I did M-x > >> > excorporate, and the minibuffer returns: error in process filter: > >> > Server response is not an XML document > >> > >> In this scenario, if you immediately (without restarting Emacs/reloading > >> anything) re-run M-x excorporate does it still fail? I just want to > >> make sure that's not a transient failure. If it does fail the second > >> time, can you post the HTTP response from the server? > >> > >> > When I do the similar test by loading the url-http-create-request with > >> > Thomas's changes, I can get a connection and grab my schedule > >> > through the proxy. > >> > >> OK. > >> > >> > Let me know if I need to try something different. > >> > >> Are you in a position to build Emacs master tip and retry the experiment > >> without patching anything? > >> > >> Thanks, > >> Thomas > >> > >> > On Mon, Jun 17, 2019 at 4:08 PM Thomas Fitzsimmons < > fitzsim@fitzsim.org> wrote: > >> >> > >> >> Hi, > >> >> > >> >> Good to hear that the patch I posted worked! > >> >> > >> >> Yes, that's the patch that Andreas's commit > >> >> 84613dae5c34ea742dd9a3e56f5acb55f604b483 applied. From what I can > tell, > >> >> you will not have that in Emacs 26.2. > >> >> > >> >> Can you try reverting my patch and applying Andreas's patch, and see > if > >> >> Excorporate still works through the proxy? > >> >> > >> >> Thanks, > >> >> Thomas > >> >> > >> >> "tenspd137 ." writes: > >> >> > >> >> > The patch Thomas seems to work from behind the proxy. My current > >> >> > emacs version is 26.2, so I would think it would include the commit > >> >> > Andreas is talking about.... I went and looked it up - is this the > >> >> > correct commit? > >> >> > > >> >> > diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el > >> >> > index 53798f7..817c5ce 100644 > >> >> > --- a/lisp/url/url-http.el > >> >> > +++ b/lisp/url/url-http.el > >> >> > @@ -1412,7 +1412,9 @@ The return value of this function is the > >> >> > retrieval buffer." > >> >> > 'url-http-wait-for-headers-change-function) > >> >> > (set-process-filter tls-connection 'url-http-generic-filter) > >> >> > (process-send-string tls-connection > >> >> > - (url-http-create-request))) > >> >> > + ;; Use the non-proxy form of the request > >> >> > + (let (url-http-proxy) > >> >> > + (url-http-create-request)))) > >> >> > (gnutls-error > >> >> > (url-http-activate-callback) > >> >> > (error "gnutls-error: %s" e)) > >> >> > > >> >> > Thanks! > >> >> > > >> >> > -C > >> >> > > >> >> > > >> >> > On Sat, Jun 15, 2019 at 1:41 AM Andreas Schwab < > schwab@linux-m68k.org> wrote: > >> >> >> > >> >> >> On Jun 14 2019, Thomas Fitzsimmons wrote: > >> >> >> > >> >> >> > diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el > >> >> >> > index 00803a103a..723d111d58 100644 > >> >> >> > --- a/lisp/url/url-http.el > >> >> >> > +++ b/lisp/url/url-http.el > >> >> >> > @@ -329,7 +329,10 @@ url-http-create-request > >> >> >> > ;; The request > >> >> >> > (or url-http-method "GET") " " > >> >> >> > (url-http--encode-string > >> >> >> > - (if using-proxy (url-recreate-url > url-http-target-url) real-fname)) > >> >> >> > + (if (and using-proxy > >> >> >> > + (not (equal "https" (url-type > url-http-target-url)))) > >> >> >> > + (url-recreate-url url-http-target-url) > >> >> >> > + real-fname)) > >> >> >> > >> >> >> That should already be handled by commit 84613dae5c. > >> >> >> > >> >> >> Andreas. > >> >> >> > >> >> >> -- > >> >> >> Andreas Schwab, schwab@linux-m68k.org > >> >> >> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 > A9DA AEC1 > >> >> >> "And now for something completely different." > --0000000000003d03be058d46c62a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry, I have not had the chance to.=C2=A0 A lot has=C2= =A0been going on at my place of employment.=C2=A0 It has crossed my mind, a= nd as soon as I have a chance, I will try what you suggested above.=C2=A0 T= hanks, sorry for=C2=A0the inconvenience.

On Tue, Jul 9, 2019, 3:53 PM Thomas= Fitzsimmons <fitzsim@fitzsim.org= > wrote:
Hi,

Were you able to complete building Emacs?=C2=A0 I'd like to know if my = patch
is needed on top of Andreas's to make Excorporate work through your
proxy.

I'm not sure why the built version would interfere with the current
installation.=C2=A0 If you were doing "make install" to a common = prefix, that
might explain it.=C2=A0 Instead you can try something like this:

cd emacs-master [your github.com checkout]
make
mkdir test-home
HOME=3D`pwd`/test-home ./src/emacs -Q

That will ensure you're only running the built Emacs, and completely ignoring the packages installed in your home directory.

Thomas

"tenspd137 ." <dcday137@gmail.com> writes:

> I haven't tried the first item on the list yet - ie reloading Andr= eas'
> function.=C2=A0 i have tried to build emacs from
> https://github.com/emacs-mirror/emacs.git because I can't reach the
> official repo from my firewall for whatever reason.=C2=A0 I am sure it= is
> something here.=C2=A0 Anyway, I was having problems because my built > version (27.0.x) was getting seemingly mixed up with my current
> installation.=C2=A0 I can try again later, but right now things are pr= etty
> busy at work.
>
> Thanks.
>
> On Tue, Jun 18, 2019 at 10:26 PM Thomas Fitzsimmons <
fitzsim@fitzs= im.org> wrote:
>>
>> Hi,
>>
>> "tenspd137 ." <dcday137@gmail.com> writes:
>>
>> > So - I am not sure if I did it correctly, but I copied this f= unction
>> > with Andreas' changes into a file:
>> >
>> > (defun url-https-proxy-after-change-function (_st _nd _length= )
>> >=C2=A0 =C2=A0(let* ((process-buffer (current-buffer))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (proc (get-buffer-process p= rocess-buffer)))
>> >=C2=A0 =C2=A0 =C2=A0(goto-char (point-min))
>> >=C2=A0 =C2=A0 =C2=A0(when (re-search-forward "^\r?\n"= ; nil t)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0(backward-char 1)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0;; Saw the end of the headers
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq url-http-end-of-headers (set-= marker (make-marker) (point)))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0(url-http-parse-response)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0(cond
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 ((null url-http-response-status) >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; We got back a headerless = malformed response from the
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; server.
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(url-http-activate-callback)=
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(error "Malformed respo= nse from proxy, fail!"))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 ((=3D url-http-response-status 200= )
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (gnutls-available-p)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(condition-cas= e e
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= (let ((tls-connection (gnutls-negotiate
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 :process proc
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 :hostname (url-host url-current-object)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 :verify-error nil)))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0;; check certificate validity
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(setq tls-connection
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0(nsm-verify-connection tls-connection
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-host url-current-object)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-port url-current-object)))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(with-current-buffer process-buffer (erase-buffer))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(set-process-buffer tls-connection process-buffer)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(setq url-http-after-change-function
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0'url-http-wait-for-headers-change-function)=
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(set-process-filter tls-connection 'url-http-generic-filter)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0(process-send-string tls-connection
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ;; Use the non-proxy form of the request
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (let (url-http-proxy)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (url-http-create-request))))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(gnutls= -error
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-h= ttp-activate-callback)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (error= "gnutls-error: %s" e))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(error<= br> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-h= ttp-activate-callback)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (error= "error: %s" e)))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(error "error: g= nutls support needed!")))
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 (t
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(url-http-debug "error = response: %d" url-http-response-status)
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(url-http-activate-callback)= )))))
>> >
>> > and then loaded it before running excorporate.=C2=A0 After th= at, I did M-x
>> > excorporate, and the minibuffer returns:=C2=A0 error in proce= ss filter:
>> > Server response is not an XML document
>>
>> In this scenario, if you immediately (without restarting Emacs/rel= oading
>> anything) re-run M-x excorporate does it still fail?=C2=A0 I just = want to
>> make sure that's not a transient failure.=C2=A0 If it does fai= l the second
>> time, can you post the HTTP response from the server?
>>
>> > When I do the similar test by loading the url-http-create-req= uest with
>> > Thomas's changes, I can get a connection and grab my sche= dule
>> > through the proxy.
>>
>> OK.
>>
>> > Let me know if I need to try something different.
>>
>> Are you in a position to build Emacs master tip and retry the expe= riment
>> without patching anything?
>>
>> Thanks,
>> Thomas
>>
>> > On Mon, Jun 17, 2019 at 4:08 PM Thomas Fitzsimmons <fitzs= im@fitzsim.org> wrote:
>> >>
>> >> Hi,
>> >>
>> >> Good to hear that the patch I posted worked!
>> >>
>> >> Yes, that's the patch that Andreas's commit
>> >> 84613dae5c34ea742dd9a3e56f5acb55f604b483 applied.=C2=A0 F= rom what I can tell,
>> >> you will not have that in Emacs 26.2.
>> >>
>> >> Can you try reverting my patch and applying Andreas's= patch, and see if
>> >> Excorporate still works through the proxy?
>> >>
>> >> Thanks,
>> >> Thomas
>> >>
>> >> "tenspd137 ." <dcday137@gmail.com> wr= ites:
>> >>
>> >> > The patch Thomas seems to work from behind the proxy= .=C2=A0 My current
>> >> > emacs version is 26.2, so I would think it would inc= lude the commit
>> >> > Andreas is talking about....=C2=A0 I went and looked= it up - is this the
>> >> > correct commit?
>> >> >
>> >> > diff --git a/lisp/url/url-http.el b/lisp/url/url-htt= p.el
>> >> > index 53798f7..817c5ce 100644
>> >> > --- a/lisp/url/url-http.el
>> >> > +++ b/lisp/url/url-http.el
>> >> > @@ -1412,7 +1412,9 @@ The return value of this funct= ion is the
>> >> > retrieval buffer."
>> >> > 'url-http-wait-for-headers-change-function)
>> >> > (set-process-filter tls-connection 'url-http-gen= eric-filter)
>> >> > (process-send-string tls-connection
>> >> > - (url-http-create-request)))
>> >> > + ;; Use the non-proxy form of the request
>> >> > + (let (url-http-proxy)
>> >> > + (url-http-create-request))))
>> >> > (gnutls-error
>> >> > (url-http-activate-callback)
>> >> > (error "gnutls-error: %s" e))
>> >> >
>> >> > Thanks!
>> >> >
>> >> > -C
>> >> >
>> >> >
>> >> > On Sat, Jun 15, 2019 at 1:41 AM Andreas Schwab <<= a href=3D"mailto:schwab@linux-m68k.org" target=3D"_blank" rel=3D"noreferrer= ">schwab@linux-m68k.org> wrote:
>> >> >>
>> >> >> On Jun 14 2019, Thomas Fitzsimmons <fitzsi= m@fitzsim.org> wrote:
>> >> >>
>> >> >> > diff --git a/lisp/url/url-http.el b/lisp/ur= l/url-http.el
>> >> >> > index 00803a103a..723d111d58 100644
>> >> >> > --- a/lisp/url/url-http.el
>> >> >> > +++ b/lisp/url/url-http.el
>> >> >> > @@ -329,7 +329,10 @@ url-http-create-reques= t
>> >> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0;; The request
>> >> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(or url-http-method "GET") " "
>> >> >> >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0(url-http--encode-string
>> >> >> > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (if using-proxy (url-recreate-url url-http-target-url) real-fname))<= br> >> >> >> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (if (and using-proxy
>> >> >> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not (equal "https" (url= -type url-http-target-url))))
>> >> >> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (url-recreate-url url-http-target-url)
>> >> >> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 real-fname))
>> >> >>
>> >> >> That should already be handled by commit 84613da= e5c.
>> >> >>
>> >> >> Andreas.
>> >> >>
>> >> >> --
>> >> >> Andreas Schwab, schwab@linux-m68k.org
>> >> >> GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510= =C2=A0 2552 DF73 E780 A9DA AEC1
>> >> >> "And now for something completely different= ."
--0000000000003d03be058d46c62a--