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: Fri, 14 Jun 2019 18:47:36 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000edda48058b521305" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="187225"; 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 Sat Jun 15 02:57:14 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 1hbx0M-000mYl-Bb for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jun 2019 02:57:14 +0200 Original-Received: from localhost ([::1]:57900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbx0L-00026h-9D for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jun 2019 20:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33161) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbwpb-00032h-O4 for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 20:46:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbwpX-0006qB-N1 for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 20:46:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbwpW-0006pF-MB for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 20:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbwpW-0000ZL-HI for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2019 20:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "tenspd137 ." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jun 2019 00:46: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.15605595332134 (code B ref 35969); Sat, 15 Jun 2019 00:46:02 +0000 Original-Received: (at 35969) by debbugs.gnu.org; 15 Jun 2019 00:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:38131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbwp1-0000YK-2A for submit@debbugs.gnu.org; Fri, 14 Jun 2019 20:45:32 -0400 Original-Received: from mail-wr1-f50.google.com ([209.85.221.50]:33807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbwox-0000Y1-Rc for 35969@debbugs.gnu.org; Fri, 14 Jun 2019 20:45:29 -0400 Original-Received: by mail-wr1-f50.google.com with SMTP id k11so4234880wrl.1 for <35969@debbugs.gnu.org>; Fri, 14 Jun 2019 17:45:27 -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=y035Sd6wrHIajMANFpfm+tD0yGA0a/zjtXca5dd6D30=; b=Y3YFAoT2/W9F8jbafb36V5nRgLd3j0feHHOEPyp++260Ju5yrBAAM5ECcJbEogprp4 HqMzXCe9sUXEpx7fE12TScQyLrwrpu0Cp+79lo03SbmUeTfYipwg7BMw4p+7MKN4eFzC 7aJA2zUOYLMmUbNOvSOaPGIQxB3eWajxpfadPHCq2I0ys2d0476UETw5fN8oscE8tvv+ WIRhlLtPy7fA2WRizE7b55vMEpfzl6bnB3s3kv9QBh6STQ9WgOGCDWCOG5H/IG5hpIm4 +O6LvAc0hUJ6N24MUdWdgi61HBDlaggqf6dD8dVz0zz0AtIrtEnr+4viIq0ksy/vWL5P 9UQw== 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=y035Sd6wrHIajMANFpfm+tD0yGA0a/zjtXca5dd6D30=; b=tFGmePEnQw/fMoIZL17hkEevx43TNGtY1i0cbBSxrUKkp+8YJByVDldNSgzx7l9+v3 OXgRY9vwHk4D7b+q2ebXopZP5SZGg+/BayLcnuR6NB99HRwSNv6btr93X9pGkzGU/SVe y8kQceTEOyzE85iFHGmcBVBvy+XXe1OK/qOv6EhYUuwmdxsrr2zUEkJUfuAwZzBZO87g ks7xMPzaXufjmYL3UaldPuaxnbu8GdDV+noDxZA8XbM5TzsQ9U5rOFVOofIXT7Mh3TKO N8LQbHnU2LLxG/OFMf6O+MG3vR848eH/nj6xfYnwDGcJ+ZuoaN1auJktaV6keQudGjjt /TNA== X-Gm-Message-State: APjAAAVMMC4jA0OI3doFtgkBUqswCp78jIt3GZs5dlxi+sNDpfJv4Y5N QUPvPcoyEUARqrLUhJxgXm/FFfjl8LLn0NntrcuIopiI X-Google-Smtp-Source: APXvYqwMi1roHVZZ/Pc3XWAXCiHEfFxQ1HL+eJ6joQyiqYd3Vg5sbcJsaFuGtjBVAKn4+mWC5qa4oSd+QfEGcA9qca0= X-Received: by 2002:a5d:5186:: with SMTP id k6mr52823652wrv.30.1560559521485; Fri, 14 Jun 2019 17:45:21 -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:160589 Archived-At: --000000000000edda48058b521305 Content-Type: text/plain; charset="UTF-8" I'll be able to try on Monday.... Thanks! C On Fri, Jun 14, 2019, 6:14 PM Thomas Fitzsimmons wrote: > Hi, > > Yes, this seems really promising. If you just replace (thefile) with > real-fname (and re-eval your url-http-create-request), does Excorporate > then work through the proxy? > > Thomas > > "tenspd137 ." writes: > > > Sorry - I was working fast: > > > > *I created a function that changed the line > > in url-http-create-request so that the request looks like:* > > > > In a file I did: > > > > (defun thefile() "/EWS/Exchange.asmx") > > > > (copied from url-http library) > > (defun url-http-create-request (&optional ref-url) > > ..... > > ;; This was done with a call to `format'. Concatenating parts has > > ;; the advantage of keeping the parts of each header together and > > ;; allows us to elide null lines directly, at the cost of making > > ;; the layout less clear. > > (setq request > > (concat > > ;; The request > > (or url-http-method "GET") " " > > (url-http--encode-string > > (if using-proxy (thefile) real-fname)) > > <------------Changed this to "hardcode" the request as proof of > > concept > > " HTTP/" url-http-version "\r\n" > > ;; Version of MIME we speak > > "MIME-Version: 1.0\r\n" > > ;; (maybe) Try to keep the connection open > > "Connection: " (if (or using-proxy ..... > > ....... > > ....... > > > > Loaded the file and then ran (url-retriev-synchronously "https:// > ......") > > > > Thanks! > > > > -C > > > > On Fri, Jun 14, 2019 at 5:07 PM tenspd137 . wrote: > >> > >> I think I figured it out. I created a function that changed the line > >> in url-http-create-request so that the request looks like: > >> GET /EWS/Exchange.asmx HTTP/1.1 <----- *no server / host* > >> 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: OIDC=1; ClientId=8998C5691CD143E784857A0D01537963 > >> Authorization: Basic ZGF2aWQuYy5kYXlAaHAuY29tOlMxa3kzbGk3bmUwNzMxJSU= > >> > >> instead of > >> > >> 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: OIDC=1; ClientId=8998C5691CD143E784857A0D01537963 > >> Authorization: Basic ZGF2aWQuYy5kYXlAaHAuY29tOlMxa3kzbGk3bmUwNzMxJSU= > >> > >> and the results buffer gives: *http....*-##### > >> HTTP/1.1 200 OK > >> Cache-Control: private > >> Content-Length: 1213 > >> Content-Type: text/html; charset=UTF-8 > >> Content-Encoding: gzip > >> Vary: Accept-Encoding > >> Server: Microsoft-IIS/10.0 > >> request-id: bcd31568-29fd-44e4-935f-35b54d697f33 > >> X-CalculatedFETarget: CY4PR18CU003.internal.outlook.com > >> X-BackEndHttpStatus: 200 > >> Set-Cookie: exchangecookie=6c731ced364846f2a979bfaa84496f1e; > >> expires=Sun, 14-Jun-2020 23:02:57 GMT; path=/; secure; HttpOnly > >> X-FEProxyInfo: CY4PR18CA0059.NAMPRD18.PROD.OUTLOOK.COM > >> X-CalculatedBETarget: CS1PR8401MB1223.NAMPRD84.PROD.OUTLOOK.COM > >> X-BackEndHttpStatus: 200 > >> X-RUM-Validated: 1 > >> X-AspNet-Version: 4.0.30319 > >> X-BeSku: Gen9 > >> X-DiagInfo: CS1PR8401MB1223 > >> X-BEServer: CS1PR8401MB1223 > >> X-FEServer: CY4PR18CA0059 > >> X-Powered-By: ASP.NET > >> X-FEServer: SN4PR0501CA0003 > >> Date: Fri, 14 Jun 2019 23:02:56 GMT > >> Connection: close > >> > >> >> href=" > https://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Exchange.asmx?disco > "/>Service

>> class="heading1">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  >> HREF="
> https://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Services.wsdl">
> https://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Services.wsdl
> 

>> class="intro"/>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#

 >> color="blue">class Test
> >> {
> >>     static void Main()
> >>     {
> >>         HelloClient client =  >> color="blue">new HelloClient();
> >>
> >>         // Use the 'client' variable to call
> >> operations on the service.
> >>
> >>         // Always close the client.
> >>         client.Close();
> >>     }
> >> }
> >> 

Visual Basic

 >> color="blue">Class Test
> >>     Shared Sub Main()
> >>         Dim client As  >> color="teal">HelloClient = New  >> color="teal">HelloClient()
> >>         ' Use the 'client' variable to call
> >> operations on the service.
> >>
> >>         ' Always close the client.
> >>         client.Close()
> >>     End Sub
> >> End Class
> >> > >> which matches the file saved with wget. > >> > >> That has to be worth something.... > >> > >> Thanks! > >> > >> -C > >> > >> On Fri, Jun 14, 2019 at 4:07 PM tenspd137 . wrote: > >> > > >> > Just some more things I noticed from the wget log vs. the emacs > buffers: > >> > > >> > emacs: Accept-encoding:gzip, wget:Accept-encoding: identity > >> > > >> > emacs: GET https://outlook.office365.com/EWS/Exchange.asmx HTTP/1.1, > >> > wget: GET /EWS/Exchange.asmx HTTP/1.1 > >> > > >> > Don't know if any of that is helpful, but there it is. > >> > > >> > Thanks! > >> > > >> > -C > >> > > >> > On Fri, Jun 14, 2019 at 3:48 PM tenspd137 . > wrote: > >> > > > >> > > Sorry - I am not in control of my proxy. So, before I give up on > this > >> > > for today, I was going over the wget logs from trying the same > thing. > >> > > One thing I noticed is: > >> > > > >> > > Connection: Keep-Alive > >> > > Proxy-Connection: Keep-Alive > >> > > > >> > > I see stuff in the emacs buffers mentioning Connection, and it says > >> > > closed (unless marking the connection as busy is the same as keeping > >> > > it open), but I don't see anything mentioning the proxy > >> > > connection....? Maybe another place to look? > >> > > > >> > > Just some ideas... > >> > > > >> > > Thanks! > >> > > > >> > > -C > >> > > > >> > > On Fri, Jun 14, 2019 at 3:02 PM Thomas Fitzsimmons < > fitzsim@fitzsim.org> wrote: > >> > > > > >> > > > Hi, > >> > > > > >> > > > Thanks for following up with these further test results. > >> > > > > >> > > > "tenspd137 ." writes: > >> > > > > >> > > > > I was able to try stepping through an Emacs/proxy/Exchange test > in an > >> > > > > emacs -Q session. After setting the proxy and configuring the > >> > > > > debugger to step through url-http and url-http-async-sentilnel, > the > >> > > > > only thing I noticed is that it appears url-http-async-sentinel > is not > >> > > > > being called. > >> > > > > >> > > > OK, that's probably expected. I listed it for completeness (all > the > >> > > > call sites of url-https-proxy-connect), but I guess it would only > be > >> > > > called under url-retrieve, not under url-retrieve-synchronously. > >> > > > > >> > > > > I also put the url-https-proxy-connect override you gave me > earlier > >> > > > > into a file, loaded it and set the debugger to run through that > as > >> > > > > well as set up proxies. A broken down list of steps: > >> > > > > > >> > > > > 1. Load file containing proxy and altered > url-https-proxyconnect, set > >> > > > > debugger to run through it when hit. > >> > > > > 2. set up url-http and url-http-async-sentinel to be picked up > by debugger > >> > > > > 3. eval (url-retrieve-synchronously > >> > > > > "https://outlook.office365.com/EWS/Exchange.asmx"), step > through > >> > > > > url-http > >> > > > > 4. Input username and password when asked > >> > > > > 5. Continue stepping until end > >> > > > > > >> > > > > url-http-async-sentinel is never called. " *http* ... -####" > has text > >> > > > > indicating failure. url-https-proxy-connect is indeed called. > >> > > > > >> > > > OK, it's good to know that url-http ultimately calls > >> > > > url-https-proxy-connect. Unfortunately, despite this, proxying > does not > >> > > > work. > >> > > > > >> > > > > I don't know how to look at the actual , if I try to > C-x C-e > >> > > > > or M-: "connection", it goes into the debugger. The url's, etc > look > >> > > > > good as far as I can tell. Not sure what else I can do. If > there are > >> > > > > certain pieces of url-http you want me to look at, just let me > know, > >> > > > > but not really knowing what has to happen under the hood, I am > not > >> > > > > going to be able to do much else. > >> > > > > >> > > > I think I'll probably have to set up my own test environment. > Are you > >> > > > in control of the proxy and its configuration? If so, can you > provide > >> > > > rough configuration instructions (proxy software, version, > relevant > >> > > > config settings)? If not, that's OK, I can try setting up > generic proxy > >> > > > software. > >> > > > > >> > > > Thanks, > >> > > > Thomas > --000000000000edda48058b521305 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'll be able to try on Monday....
Thanks!

C

On Fri, Jun 14, 2019, 6:14 PM Thomas Fitzsimmons <fitzsim@fitzsim.org> wrote:
Hi,

Yes, this seems really promising.=C2=A0 If you just replace (thefile) with<= br> real-fname (and re-eval your url-http-create-request), does Excorporate
then work through the proxy?

Thomas

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

> Sorry - I was working fast:
>
> *I created a function that changed the line
> in=C2=A0 url-http-create-request so that the request looks like:*
>
> In a file I did:
>
> (defun thefile() "/EWS/Exchange.asmx")
>
> (copied from url-http library)
> (defun url-http-create-request (&optional ref-url)
> .....
>=C2=A0 =C2=A0 ;; This was done with a call to `format'.=C2=A0 Conca= tenating parts has
>=C2=A0 =C2=A0 =C2=A0;; the advantage of keeping the parts of each heade= r together and
>=C2=A0 =C2=A0 =C2=A0;; allows us to elide null lines directly, at the c= ost of making
>=C2=A0 =C2=A0 =C2=A0;; the layout less clear.
>=C2=A0 =C2=A0 =C2=A0(setq request
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(concat
>=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 (or url-http-method &q= uot;GET") " "
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (url-http--encode-stri= ng
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if using-proxy = (thefile) real-fname))
> <------------Changed this to "hardcode" the request as pr= oof of
> concept
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 " HTTP/" url= -http-version "\r\n"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; Version of MIME we = speak
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "MIME-Version: 1.= 0\r\n"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; (maybe) Try to keep= the connection open
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "Connection: &quo= t; (if (or using-proxy .....
> .......
> .......
>
> Loaded the file and then ran (url-retriev-synchronously "https://= ......")
>
> Thanks!
>
> -C
>
> On Fri, Jun 14, 2019 at 5:07 PM tenspd137 . <dcday137@gmail.com= > wrote:
>>
>> I think I figured it out.=C2=A0 I created a function that changed = the line
>> in=C2=A0 url-http-create-request so that the request looks like: >> GET /EWS/Exchange.asmx HTTP/1.1 <-----=C2=A0 *no server / host*=
>> 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: OIDC=3D1; ClientId=3D8998C5691CD143E784857A0D01537963
>> Authorization: Basic ZGF2aWQuYy5kYXlAaHAuY29tOlMxa3kzbGk3bmUwNzMxJ= SU=3D
>>
>> instead of
>>
>> 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: OIDC=3D1; ClientId=3D8998C5691CD143E784857A0D01537963
>> Authorization: Basic ZGF2aWQuYy5kYXlAaHAuY29tOlMxa3kzbGk3bmUwNzMxJ= SU=3D
>>
>> and the results buffer gives: *http....*-#####
>> HTTP/1.1 200 OK
>> Cache-Control: private
>> Content-Length: 1213
>> Content-Type: text/html; charset=3DUTF-8
>> Content-Encoding: gzip
>> Vary: Accept-Encoding
>> Server: Microsoft-IIS/10.0
>> request-id: bcd31568-29fd-44e4-935f-35b54d697f33
>> X-CalculatedFETarget: CY4PR18CU003.inter= nal.outlook.com
>> X-BackEndHttpStatus: 200
>> Set-Cookie: exchangecookie=3D6c731ced364846f2a979bfaa84496f1e;
>> expires=3DSun, 14-Jun-2020 23:02:57 GMT; path=3D/; secure; HttpOnl= y
>> X-FEProxyInfo: CY4PR18CA0059.NAMPR= D18.PROD.OUTLOOK.COM
>> X-CalculatedBETarget: CS1PR8401M= B1223.NAMPRD84.PROD.OUTLOOK.COM
>> X-BackEndHttpStatus: 200
>> X-RUM-Validated: 1
>> X-AspNet-Version: 4.0.30319
>> X-BeSku: Gen9
>> X-DiagInfo: CS1PR8401MB1223
>> X-BEServer: CS1PR8401MB1223
>> X-FEServer: CY4PR18CA0059
>> X-Powered-By: ASP.NET
>> X-FEServer: SN4PR0501CA0003
>> Date: Fri, 14 Jun 2019 23:02:56 GMT
>> Connection: close
>>
>> <HTML><HEAD><link rel=3D"alternate" type= =3D"text/xml"
>> href=3D"https://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Excha= nge.asmx?disco"/><STYLE
>> type=3D"text/css">#content{ FONT-SIZE: 0.7em; PADDING= -BOTTOM: 2em;
>> MARGIN-LEFT: 30px}BODY{MARGIN-TOP: 0px; MARGIN-LEFT: 0px; COLOR: >> #000000; FONT-FAMILY: Verdana; BACKGROUND-COLOR: white}P{MARGIN-TO= P:
>> 0px; MARGIN-BOTTOM: 12px; COLOR: #000000; FONT-FAMILY:
>> Verdana}PRE{BORDER-RIGHT: #f0f0e0 1px solid; PADDING-RIGHT: 5px; >> BORDER-TOP: #f0f0e0 1px solid; MARGIN-TOP: -5px; PADDING-LEFT: 5px= ;
>> FONT-SIZE: 1.2em; PADDING-BOTTOM: 5px; BORDER-LEFT: #f0f0e0 1px so= lid;
>> PADDING-TOP: 5px; BORDER-BOTTOM: #f0f0e0 1px solid; FONT-FAMILY: >> Courier New; BACKGROUND-COLOR: #e5e5cc}.heading1{MARGIN-TOP: 0px;<= br> >> PADDING-LEFT: 15px; FONT-WEIGHT: normal; FONT-SIZE: 26px;
>> MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: -30px; WIDTH= :
>> 100%; COLOR: #ffffff; PADDING-TOP: 10px; FONT-FAMILY: Tahoma;
>> BACKGROUND-COLOR: #003366}.intro{MARGIN-LEFT:
>> -15px}</STYLE><TITLE>Service</TITLE></HEAD>= ;<BODY><DIV id=3D"content"><P
>> class=3D"heading1">Service</P><BR/><P = class=3D"intro">You have created a
>> service.<P class=3D'intro'>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:&= lt;/P>
>> <BR/><PRE>svcutil.exe <A
>> HREF=3D"https://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Services.wsdl= ">http= s://cs1pr8401mb1223.namprd84.prod.outlook.com:444/EWS/Services.wsdl<= /A></PRE></P><P
>> class=3D"intro"/>This will generate a configuration f= ile 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:<BR/><P class=3D'intro'><B>C= #</B></P><PRE><font
>> color=3D"blue">class </font><font color=3D&q= uot;teal">Test
>> </font>{
>> <font color=3D"blue">=C2=A0 =C2=A0 static void <= ;/font>Main()
>>=C2=A0 =C2=A0 =C2=A0{
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<font color=3D"teal"= >HelloClient</font> client =3D <font
>> color=3D"blue">new </font><font color=3D&quo= t;teal">HelloClient</font>();
>>
>> <font color=3D"green">=C2=A0 =C2=A0 =C2=A0 =C2=A0 = // Use the 'client' variable to call
>> operations on the service.
>>
>> </font><font color=3D"green">=C2=A0 =C2=A0 = =C2=A0 =C2=A0 // Always close the client.
>> </font>=C2=A0 =C2=A0 =C2=A0 =C2=A0 client.Close();
>>=C2=A0 =C2=A0 =C2=A0}
>> }
>> </PRE><BR/><P class=3D'intro'><B>V= isual Basic</B></P><PRE><font
>> color=3D"blue">Class </font><font color=3D&q= uot;teal">Test
>> </font><font color=3D"blue">=C2=A0 =C2=A0 Sh= ared Sub </font>Main()
>> <font color=3D"blue">=C2=A0 =C2=A0 =C2=A0 =C2=A0 D= im </font>client As <font
>> color=3D"teal">HelloClient</font> =3D <font = color=3D"blue">New </font><font
>> color=3D"teal">HelloClient</font>()
>> <font color=3D"green">=C2=A0 =C2=A0 =C2=A0 =C2=A0 = ' Use the 'client' variable to call
>> operations on the service.
>>
>> </font><font color=3D"green">=C2=A0 =C2=A0 = =C2=A0 =C2=A0 ' Always close the client.
>> </font>=C2=A0 =C2=A0 =C2=A0 =C2=A0 client.Close()
>> <font color=3D"blue">=C2=A0 =C2=A0 End Sub
>> </font><font color=3D"blue">End Class</fo= nt></PRE></DIV></BODY></HTML>
>>
>> which matches the file saved with wget.
>>
>> That has to be worth something....
>>
>> Thanks!
>>
>> -C
>>
>> On Fri, Jun 14, 2019 at 4:07 PM tenspd137 . <dcday137@gmail.com= > wrote:
>> >
>> > Just some more things I noticed from the wget log vs. the ema= cs buffers:
>> >
>> > emacs: Accept-encoding:gzip, wget:Accept-encoding: identity >> >
>> > emacs: GET=C2=A0 https://out= look.office365.com/EWS/Exchange.asmx HTTP/1.1,
>> > wget: GET /EWS/Exchange.asmx HTTP/1.1
>> >
>> > Don't know if any of that is helpful, but there it is. >> >
>> > Thanks!
>> >
>> > -C
>> >
>> > On Fri, Jun 14, 2019 at 3:48 PM tenspd137 . <dcday137@gmai= l.com> wrote:
>> > >
>> > > Sorry - I am not in control of my proxy.=C2=A0 So, befor= e I give up on this
>> > > for today, I was going over the wget logs from trying th= e same thing.
>> > > One thing I noticed is:
>> > >
>> > > Connection: Keep-Alive
>> > > Proxy-Connection: Keep-Alive
>> > >
>> > > I see stuff in the emacs buffers mentioning Connection, = and it says
>> > > closed (unless marking the connection as busy is the sam= e as keeping
>> > > it open), but I don't see anything mentioning the pr= oxy
>> > > connection....?=C2=A0 Maybe another place to look?
>> > >
>> > > Just some ideas...
>> > >
>> > > Thanks!
>> > >
>> > > -C
>> > >
>> > > On Fri, Jun 14, 2019 at 3:02 PM Thomas Fitzsimmons <<= a href=3D"mailto:fitzsim@fitzsim.org" target=3D"_blank" rel=3D"noreferrer">= fitzsim@fitzsim.org> wrote:
>> > > >
>> > > > Hi,
>> > > >
>> > > > Thanks for following up with these further test res= ults.
>> > > >
>> > > > "tenspd137 ." <dcday137@gmail.com&= gt; writes:
>> > > >
>> > > > > I was able to try stepping through an Emacs/pr= oxy/Exchange test in an
>> > > > > emacs -Q session.=C2=A0 After setting the prox= y and configuring the
>> > > > > debugger to step through url-http and url-http= -async-sentilnel, the
>> > > > > only thing I noticed is that it appears url-ht= tp-async-sentinel is not
>> > > > > being called.
>> > > >
>> > > > OK, that's probably expected.=C2=A0 I listed it= for completeness (all the
>> > > > call sites of url-https-proxy-connect), but I guess= it would only be
>> > > > called under url-retrieve, not under url-retrieve-s= ynchronously.
>> > > >
>> > > > > I also put the url-https-proxy-connect overrid= e you gave me earlier
>> > > > > into a file, loaded it and set the debugger to= run through that as
>> > > > > well as set up proxies.=C2=A0 A broken down li= st of steps:
>> > > > >
>> > > > > 1.=C2=A0 Load file containing proxy and altere= d url-https-proxyconnect, set
>> > > > > debugger to run through it when hit.
>> > > > > 2.=C2=A0 set up url-http and url-http-async-se= ntinel to be picked up by debugger
>> > > > > 3.=C2=A0 eval (url-retrieve-synchronously
>> > > > > "https:/= /outlook.office365.com/EWS/Exchange.asmx"), step through
>> > > > > url-http
>> > > > > 4.=C2=A0 Input username and password when aske= d
>> > > > > 5.=C2=A0 Continue stepping until end
>> > > > >
>> > > > > url-http-async-sentinel is never called. "= ; *http* ... -####" has text
>> > > > > indicating failure. url-https-proxy-connect is= indeed called.
>> > > >
>> > > > OK, it's good to know that url-http ultimately = calls
>> > > > url-https-proxy-connect.=C2=A0 Unfortunately, despi= te this, proxying does not
>> > > > work.
>> > > >
>> > > > > I don't know how to look at the actual <= ;process>, if I try to C-x C-e
>> > > > > or M-: "connection", it goes into th= e debugger.=C2=A0 The url's, etc look
>> > > > > good as far as I can tell.=C2=A0 Not sure what= else I can do.=C2=A0 If there are
>> > > > > certain pieces of url-http you want me to look= at, just let me know,
>> > > > > but not really knowing what has to happen unde= r the hood, I am not
>> > > > > going to be able to do much else.
>> > > >
>> > > > I think I'll probably have to set up my own tes= t environment.=C2=A0 Are you
>> > > > in control of the proxy and its configuration?=C2= =A0 If so, can you provide
>> > > > rough configuration instructions (proxy software, v= ersion, relevant
>> > > > config settings)?=C2=A0 If not, that's OK, I ca= n try setting up generic proxy
>> > > > software.
>> > > >
>> > > > Thanks,
>> > > > Thomas
--000000000000edda48058b521305--