From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "tenspd137 ." Newsgroups: gmane.emacs.bugs Subject: bug#35969: 26.2, Excorporate Date: Wed, 29 May 2019 12:13:46 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142297"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35969@debbugs.gnu.org To: Thomas Fitzsimmons Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 29 20:15:16 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hW36a-000an5-86 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 20:15:16 +0200 Original-Received: from localhost ([127.0.0.1]:58867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW36Z-0001LS-5P for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 14:15:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW36S-0001J7-8L for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 14:15:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hW36Q-0001n4-8q for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 14:15:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hW36M-0001lQ-Je for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 14:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hW36M-0006jd-CM for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 14:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "tenspd137 ." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 May 2019 18:15: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.155915365125742 (code B ref 35969); Wed, 29 May 2019 18:15:02 +0000 Original-Received: (at 35969) by debbugs.gnu.org; 29 May 2019 18:14:11 +0000 Original-Received: from localhost ([127.0.0.1]:59837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW35S-0006h4-VD for submit@debbugs.gnu.org; Wed, 29 May 2019 14:14:11 -0400 Original-Received: from mail-ot1-f50.google.com ([209.85.210.50]:36991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW35Q-0006gO-Gc for 35969@debbugs.gnu.org; Wed, 29 May 2019 14:14:05 -0400 Original-Received: by mail-ot1-f50.google.com with SMTP id r10so3003306otd.4 for <35969@debbugs.gnu.org>; Wed, 29 May 2019 11:14:04 -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:content-transfer-encoding; bh=yDtrCJZ0VTQuVzdnVMDB4DnmHTaEamzxinWZMM7XZrM=; b=H40Ydv6wChrgfG+0A7BxJNSdgUlwVYf+qZScrG4Jc7yluSuhlG1myKARyI1wZOq4qA jH1lPw6rn797kpDqWX7MFdA0/VcE68SOb/OnZIv+xH6dIxGkg820i2hCt1UK7eUnZDdy sZqehzkHfvUDSbbu/VBJYHSPWnPXvb8oPGg88UBz3Z0q0EEbes+sP9cOGRY6Ytdqmrt/ VRPdGxMVhDgGu0knudaO/g+JbLZMXfeYlbiRY+QeKfI/dHORUYZbXaGhNrsy/FjJB6ph 7cNev9DF4tDtF15VXJbs0+bP9IIXV3R7txV98KmdgO7czPY21s7LIVO8b9dhIr70CwDt Mt0w== 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:content-transfer-encoding; bh=yDtrCJZ0VTQuVzdnVMDB4DnmHTaEamzxinWZMM7XZrM=; b=kY7C9it1sWhbKQ25eaEt7N+f0E/Kso/2T/uFWASPIJLvHwSEBoBJ0qrV1YRz7ppphu E4wzBXp2wKDj6TUPd6HRp6dVLB/mjGi5Hp2NTvF2RrMW7/KAdDgqY/BrnBaw2J+3OJMp Epf9aPY2pzdOzog7Ei04HHqjyAJnyjmxZaQoLjpZcyxXfY+Vj+83an7mC0SmxWAJ8TSP C+5LeoQLOdUgkb4AsgfT89dv0cH1/7gbmNMLb9Enwqsp2jaONrQORzw8neoGgeAzTQZV EgKeQfQBTyg7zV5h1/Y8oAp2AJEVs5Bgj/Pn5g1lk8KsZBs1pQ4fLUkGtABZWDM9Xkzs EduQ== X-Gm-Message-State: APjAAAX6fmbP1blxNsgQFqikwrhnRVCknZh2VhHKozvcmw/nwY+9o3sY rZYFnywIAvkgpKifIx4Jhfo/5D0ue0OIGb6bT5ctWjCD X-Google-Smtp-Source: APXvYqxKBhfDsSkPuX3HNr+sDO99xcFNk+9PdYfd7QABdc+H4d5FwYajBID+hiNcom51bL8slQAJlIfQ8cIdeCRZFLE= X-Received: by 2002:a05:6830:124d:: with SMTP id s13mr174635otp.360.1559153638206; Wed, 29 May 2019 11:13:58 -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:159889 Archived-At: Thomas - For the unauthenticated site, the buffer " *http www.gnu.org:443*" returns HTTP/1.1 200 OK Date: Wed, 29 May 2019 17:31:43 GMT Server: Apache/2.4.7 Content-Location: home.html ..... [successfuol output] ..... and URL-DEBUG http -> Contacting host: www.gnu.org:443 http -> Marking connection as busy: www.gnu.org:443 # retrieval -> Spinning in url-retrieve-synchronously: nil (#) retrieval -> Spinning in url-retrieve-synchronously: nil (#) http -> Calling after change function `url-https-proxy-after-change-function' for `#' http -> url-http-parse-response called in ( *http www.gnu.org:443*) http -> Request is: GET https://www.gnu.org/ HTTP/1.1 MIME-Version: 1.0 Connection: close Extension: Security/Digest Security/SSL Host: www.gnu.org Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/26.2 (X11; x86_64-pc-linux-gnu) retrieval -> Spinning in url-retrieve-synchronously: nil (#) http -> Calling after change function `url-http-wait-for-headers-change-function' for `#' http -> url-http-wait-for-headers-change-function ( *http www.gnu.org:443*) http -> Saw end of headers... ( *http www.gnu.org:443*) http -> url-http-parse-response called in ( *http www.gnu.org:443*) http -> Got a content-length, being smart about document end. http -> Calling initial content-length for extra data at end of headers http -> Spinning waiting for headers... http -> Calling after change function `url-http-content-length-after-change-function' for `#' http -> Calling after change function `url-http-content-length-after-change-function' for `#' http -> Calling after change function `url-http-content-length-after-change-function' for `#' http -> Calling after change function `url-http-content-length-after-change-function' for `#' http -> Calling after change function `url-http-content-length-after-change-function' for `#' http -> Marking connection as free: www.gnu.org:443 # http -> url-http-parse-headers called in ( *http www.gnu.org:443*) http -> url-http-parse-response called in ( *http www.gnu.org:443*) http -> Parsed HTTP headers: class=3D2 status=3D200 http -> Finished parsing HTTP headers: t http -> Marking connection as free: www.gnu.org:443 # http -> Activating callback in buffer ( *http www.gnu.org:443*): #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(nil) (#) url-debug retrieval "Synchronous fetching done (%S)" t] 5 " (fn &rest IGNORED)"] ((:peer (:certificate (:version 3 :serial-number "03:da:73:db:ff:c6:23:a4:16:f3:45:6f:fe:05:8e:04:b8:c2" :issuer "C=3DUS,O=3DLet's Encrypt,CN=3DLet's Encrypt Authority X3" :valid-from "2019-04-02" :valid-to "2019-07-01" :subject "CN=3Demacs.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:89:0c:f7:08:4e:65:16:0b:43:08:43:eb:e3:33:77:fa:fb:1c:a5:70" :certificate-id "sha1:0d:61:97:26:9a:58:d7:04:de:52:1f:29:ca:45:55:ec:67:a9:b1:60") :key-exchange "ECDHE-RSA" :protocol "TLS1.2" :cipher "AES-128-GCM" :mac "AEAD"))) retrieval -> Synchronous fetching done (#) The authenticated site buffer " *http httpbin.org:443" returns HTTP/1.1 401 UNAUTHORIZED Access-Control-Allow-Credentials: true Access-Control-Allow-Origin: * Date: Wed, 29 May 2019 17:38:27 GMT Referrer-Policy: no-referrer-when-downgrade Server: nginx WWW-Authenticate: Basic realm=3D"Fake Realm" X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=3Dblock Content-Length: 0 Connection: Close and the URL-DEBUG buffer gives http -> Contacting host: httpbin.org:443 http -> Marking connection as busy: httpbin.org:443 # retrieval -> Spinning in url-retrieve-synchronously: nil (#) http -> Calling after change function `url-https-proxy-after-change-function' for `#' http -> url-http-parse-response called in ( *http httpbin.org:443*) http -> Request is: GET https://httpbin.org/basic-auth/user/passwd HTTP/1.1 MIME-Version: 1.0 Connection: close Extension: Security/Digest Security/SSL Host: httpbin.org Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/26.2 (X11; x86_64-pc-linux-gnu) retrieval -> Spinning in url-retrieve-synchronously: nil (#) http -> Calling after change function `url-http-wait-for-headers-change-function' for `#' http -> url-http-wait-for-headers-change-function ( *http httpbin.org:443*) http -> Saw end of headers... ( *http httpbin.org:443*) http -> url-http-parse-response called in ( *http httpbin.org:443*) http -> Got a content-length, being smart about document end. http -> Got 0-length content-length, activating callback immediately. http -> Marking connection as free: httpbin.org:443 # http -> url-http-parse-headers called in ( *http httpbin.org:443*) http -> url-http-parse-response called in ( *http httpbin.org:443*) http -> Parsed HTTP headers: class=3D4 status=3D401 http -> Handling normal authentication http -> Contacting host: httpbin.org:443 http -> Marking connection as busy: httpbin.org:443 # http -> Finished parsing HTTP headers: nil http -> Spinning waiting for headers... retrieval -> Spinning in url-retrieve-synchronously: nil (#) http -> Calling after change function `url-https-proxy-after-change-function' for `#' http -> url-http-parse-response called in ( *http httpbin.org:443*-54346) http -> Request is: GET https://httpbin.org/basic-auth/user/passwd HTTP/1.1 MIME-Version: 1.0 Connection: close Extension: Security/Digest Security/SSL Host: httpbin.org Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/26.2 (X11; x86_64-pc-linux-gnu) Authorization: Basic dXNlcjpwYXNzd2Q=3D http -> Calling after change function `url-http-wait-for-headers-change-function' for `#' http -> url-http-wait-for-headers-change-function ( *http httpbin.org:443*-54346) http -> Saw end of headers... ( *http httpbin.org:443*-54346) http -> url-http-parse-response called in ( *http httpbin.org:443*-54346) http -> Got a content-length, being smart about document end. http -> Calling initial content-length for extra data at end of headers http -> Marking connection as free: httpbin.org:443 # http -> url-http-parse-headers called in ( *http httpbin.org:443*-54346) http -> url-http-parse-response called in ( *http httpbin.org:443*-54346) http -> Parsed HTTP headers: class=3D2 status=3D200 http -> Finished parsing HTTP headers: t http -> Marking connection as free: httpbin.org:443 # http -> Activating callback in buffer ( *http httpbin.org:443*-54346): #[128 "\302\303\304p#\210\300\305\240\210\301p\240\207" [(t) (#) url-debug retrieval "Synchronous fetching done (%S)" t] 5 " (fn &rest IGNORED)"] ((:peer (:certificate (:version 3 :serial-number "06:0c:5d:3e:f4:d0:2e:f5:c1:ac:09:8e:b3:0e:39:ab" :issuer "C=3DUS,O=3DAmazon,OU=3DServer CA 1B,CN=3DAmazon" :valid-from "2019-02-17" :valid-to "2020-03-17" :subject "CN=3Dhttpbin.org" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:1b:e3:b6:57:70:0a:15:df:dc:05:20:f2:66:da:8e:2f:74:4b:e8:ed" :certificate-id "sha1:cd:9a:4d:21:af:57:65:e6:d3:be:3a:d0:1c:dc:88:26:b8:96:bb:f7") :key-exchange "ECDHE-RSA" :protocol "TLS1.2" :cipher "AES-128-GCM" :mac "AEAD"))) retrieval -> Synchronous fetching done (#) http -> Spinning waiting for headers... Just as a check: echo $http_proxy http://web-proxy:8080 echo $https_proxy http://web-proxy:8080 using wget, I get a file with the following contents: wget --user user --password passwd https://httpbin.org/basic-auth/user/pas= swd --2019-05-29 11:46:25-- https://httpbin.org/basic-auth/user/passwd Resolving web-proxy... xx.xx.xxx.xxx Connecting to web-proxy|xx.xx.xxx.xxx]:8080... connected. Proxy request sent, awaiting response... 401 UNAUTHORIZED Authentication selected: Basic realm=3D"Fake Realm" Reusing existing connection to httpbin.org:443. Proxy request sent, awaiting response... 200 OK Length: 47 [application/json] Saving to: =E2=80=98passwd=E2=80=99 passwd 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 47 --.-KB/s in 0s 2019-05-29 11:46:26 (3.59 MB/s) - =E2=80=98passwd=E2=80=99 saved [47/47] cat passwd { "authenticated": true, "user": "user" } Thanks! -C } On Wed, May 29, 2019 at 11:02 AM Thomas Fitzsimmons w= rote: > > Hi, > > "tenspd137 ." writes: > > > Hi - thanks for the reply. Here are the steps I took (I had to > > configure the proxy as well....): > > > > M-: (setq url-proxy-services '(("http" . "web-proxy:8080") ("https" . "= web-proxy:8080"))) > > M-: (setq url-debug t) > > M-: (url-retrieve-synchronously "https://server/EWS/Exchange.asmx") > > > > -Asks for name and password-, I fill them in..... > > OK, I think the buffer contents you pasted are fine/expected; it's the > web site saying you're unauthorized, which then causes "url" to prompt > for credentials. That part seems to have worked through the proxies. > > Then the url library created a second buffer: > > " *http outlook.office365.com:443*-229815" > > which I'm inferring from the logs contained "400 Bad Request" headers. > I'm not sure why that might be; I haven't tried Emacs's url proxy > support before. That said, I'd like to keep trying to fix this since > I'd like Excorporate to work via proxies. > > You could try an unauthenticated site to see if that works through the > proxies, e.g.: > > [same initial steps] > M-: (url-retrieve-synchronously "https://www.gnu.org/") > > and then a different authenticated site, like this test page: > > M-: (url-retrieve-synchronously "https://httpbin.org/basic-auth/user/pass= wd") > > Username: user > Password: passwd > > If that all works, then we'll have to figure out why url proxy support > is not working with the Exchange server specifically. > > [...] > > > But - just for reference - here is what is in the file I receive when > > I use wget: > > > > wget --user me@work --password xxxxxxxxxxx https://outlook.office365.c= om/EWS/Exchange.asmx > > > > [successful output] > > Are you configuring wget to use the same proxies as in the Emacs > attempt, via the http_proxy and https_proxy environment variables? > > Thanks, > Thomas