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 10:17:05 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="120387"; 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 18:18:17 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 1hW1HN-000VA8-56 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 18:18:17 +0200 Original-Received: from localhost ([127.0.0.1]:57535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW1HM-0003ar-5d for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 May 2019 12:18:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW1HB-0003aT-11 for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 12:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hW1H8-0006ZC-K4 for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 12:18:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46137) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hW1H8-0006Yx-FH for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hW1H8-0001Bc-7t for bug-gnu-emacs@gnu.org; Wed, 29 May 2019 12:18: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 16:18: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.15591466454502 (code B ref 35969); Wed, 29 May 2019 16:18:02 +0000 Original-Received: (at 35969) by debbugs.gnu.org; 29 May 2019 16:17:25 +0000 Original-Received: from localhost ([127.0.0.1]:59679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW1GW-0001AX-Uz for submit@debbugs.gnu.org; Wed, 29 May 2019 12:17:25 -0400 Original-Received: from mail-oi1-f176.google.com ([209.85.167.176]:40569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW1GV-0001AJ-5h for 35969@debbugs.gnu.org; Wed, 29 May 2019 12:17:23 -0400 Original-Received: by mail-oi1-f176.google.com with SMTP id r136so2519705oie.7 for <35969@debbugs.gnu.org>; Wed, 29 May 2019 09:17:23 -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=NBCXMmL1DO2uOVuPsRyC0HaWJxquKDrXul+zgU7lFpg=; b=HpKG5bSSKjWOV6VAI09+c59/ZPMIMiokK1Lv8B2nX8obDJLKUg4c5cNrxvlgR75UDd RfX6iKcV767y7P8/krSE1rO4t/EONkL77i5Wy5vqB231E0jwAm5jb1uD312C/PgK0qre YiedMyJo3+CUtWWJJmfwrcY7SDHBg3upYIBsk7gu3dRBQtKcLlF4z5XZdgajSdaApAyd oIW5JxqZstS66rIzpIDY9zQSn9MgcS/q5+k241uaAokh/mdnmiwzVNrdSYZYroO81fCP e5J0R3gN0ipSRbdytKVxKkMhuyVerRFdMk+8WwXhF3PE/x7kP5B0VGSXCmg8JQ8jsuol zkgg== 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=NBCXMmL1DO2uOVuPsRyC0HaWJxquKDrXul+zgU7lFpg=; b=HmmZIqwi8Eu/g/ki1y5ZLwcDs5k1EaSPa/UkdHfc0g3g1TlhzGWwzlbkVqYpCoN2ee V/911MQ3IVR16OD3HZ0SvPW0AjEQ1tSkpHCvg0wwM2/Zejv87Ns4GvT0b1B0qX24vwPp P5eYQxb9fkhG73Xh9xYU3mOqJG/tXXSFm6JM75UR4ipU6ENs0aP8Mw+XQ2mPofSIuHTt DuhfboNZlGaom+5xC5BCXMoP4tfG9aaXTiDkZaWUI1QppSykXr1OkWsjBEXnmwiz7C1i N3krEaiij+aVNVQhxiuidO1GDVM0uT65iaRB8Nnuv20niWhgG7DE0k9+fKQG+FzqhbIC vjoQ== X-Gm-Message-State: APjAAAWxQEpO87qOmW2UPV8UWhrWsdAggVNIUbeTcFADYXW6T158xMxi M2dZYJh3FVdn6XNTX+a7C92h4VccnA2W12yy/JI= X-Google-Smtp-Source: APXvYqzPQEmCAcUJ4HBktIZDhDNvtT2CX9UhpCY8NIGv1yZgB5c18QFDjXWQHyVk+8XMTLkd0egfLOqJVT6YyZd7RP0= X-Received: by 2002:aca:5ad6:: with SMTP id o205mr1331292oib.92.1559146637097; Wed, 29 May 2019 09:17:17 -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:159885 Archived-At: 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..... The buffer contents are: " *http server:443*" HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/10.0 request-id: 12d85c25-a5f7-49d5-a794-ef282ec5e6af X-WSSecurity-Enabled: True X-WSSecurity-For: Logon X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline X-WSSecurity-SymmetricKey-Enabled: True X-WSSecurity-X509Cert-Enabled: True X-OAuth-Enabled: True X-Powered-By: ASP.NET X-FEServer: SN6PR16CA0070 WWW-Authenticate: Basic Realm="" Date: Wed, 29 May 2019 16:00:44 GMT Connection: close Content-Length: 0 and "*URL-DEBUG*" http -> Contacting host: outlook.office365.com:443 http -> Marking connection as busy: outlook.office365.com: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 outlook.office365.com:443*) http -> Request is: GET https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1 MIME-Version: 1.0 Connection: close Extension: Security/Digest Security/SSL Host: outlook.office365.com Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/26.2 (X11; x86_64-pc-linux-gnu) Cookie: ClientId=8998C5691CD143E784857A0D01537963; OIDC=1 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 outlook.office365.com:443*) http -> Saw end of headers... ( *http outlook.office365.com:443*) http -> url-http-parse-response called in ( *http outlook.office365.com: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: outlook.office365.com:443 # http -> url-http-parse-headers called in ( *http outlook.office365.com:443*) http -> url-http-parse-response called in ( *http outlook.office365.com:443*) http -> Parsed HTTP headers: class=4 status=401 http -> Handling normal authentication http -> Contacting host: outlook.office365.com:443 http -> Marking connection as busy: outlook.office365.com: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 outlook.office365.com:443*-229815) http -> Request is: GET https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1 MIME-Version: 1.0 Connection: close Extension: Security/Digest Security/SSL Host: outlook.office365.com Accept-encoding: gzip Accept: */* User-Agent: URL/Emacs Emacs/26.2 (X11; x86_64-pc-linux-gnu) Cookie: ClientId=8998C5691CD143E784857A0D01537963; OIDC=1 Authorization: Basic ZGF2aWQuYy5kYXlAaHAuY29tOmwxaTNuN2VTa3kxMzcwJSU= http -> Calling after change function `url-http-wait-for-headers-change-function' for `#' http -> url-http-wait-for-headers-change-function ( *http outlook.office365.com:443*-229815) http -> Saw end of headers... ( *http outlook.office365.com:443*-229815) http -> url-http-parse-response called in ( *http outlook.office365.com:443*-229815) 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: outlook.office365.com:443 # http -> url-http-parse-headers called in ( *http outlook.office365.com:443*-229815) http -> url-http-parse-response called in ( *http outlook.office365.com:443*-229815) http -> Parsed HTTP headers: class=4 status=400 http -> Finished parsing HTTP headers: t http -> Marking connection as free: outlook.office365.com:443 # http -> Activating callback in buffer ( *http outlook.office365.com:443*-229815): #[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)"] ((:error (error http 400) :peer (:certificate (:version 3 :serial-number "04:78:00:ec:6e:d6:46:74:40:83:3c:83:58:2c:0c:eb" :issuer "C=US,O=DigiCert Inc,CN=DigiCert Cloud Services CA-1" :valid-from "2018-11-19" :valid-to "2020-11-19" :subject "C=US,ST=Washington,L=Redmond,O=Microsoft Corporation,CN=outlook.com" :public-key-algorithm "RSA" :certificate-security-level "Medium" :signature-algorithm "RSA-SHA256" :public-key-id "sha1:18:91:f8:bd:ec:41:11:cd:a8:c8:d0:25:00:0d:a5:e4:10:b4:67:dd" :certificate-id "sha1:f2:1d:79:fd:e3:61:5c:02:2d:48:62:fd:cd:87:b8:6a:d6:60:b6:06") :key-exchange "ECDHE-RSA" :protocol "TLS1.2" :cipher "AES-256-GCM" :mac "AEAD"))) retrieval -> Synchronous fetching done (#) http -> Spinning waiting for headers... 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.com/EWS/Exchange.asmx Service

Service


You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:


svcutil.exe https://tu4pr8401mb1231.namprd84.prod.outlook.com:444/EWS/Services.wsdl

This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

C#

class Test
{
    static void Main()
    {
        HelloClient client = new HelloClient();

        // Use the 'client' variable to call
operations on the service.

        // Always close the client.
        client.Close();
    }
}

Visual Basic

Class Test
    Shared Sub Main()
        Dim client As HelloClient = New HelloClient()
        ' Use the 'client' variable to call
operations on the service.

        ' Always close the client.
        client.Close()
    End Sub

Thank you for taking a look and helping me learn some debug tricks.

-C

PS - Sorry for sending to you twice, I should have hit reply to all to
put this in the bug tracker....

On Tue, May 28, 2019 at 7:04 PM Thomas Fitzsimmons  wrote:
>
> Hi,
>
> "tenspd137 ."  writes:
>
> > I was trying to use Excorporate through a proxy, and it fails.  I am
> > pretty sure that my configuration is correct because I am able to
> > retrieve *a* file when I use wget and https://server/EWS/Exchange.asmx
> > and I can get a Services.wsdl file with
> > https://server/EWS/Exchange.asmx.
>
> Thanks for reporting.  Is just Emacs (not Excorporate) able to retrieve
> the file through the proxy?  That is, starting from an "emacs -Q"
> session, can you try just:
>
> M-: (setq url-debug t)
> M-: (url-retrieve-synchronously "https://server/EWS/Exchange.asmx")
>
> and see what the *URL-DEBUG* and " *http server:443*" (note leading
> space character) buffers contain afterwards?
>
> Thanks,
> Thomas