$ curl -v --ntlm -u 'domain\user' --url https://example.com/EWS/Exchange.asmx --data @/home/user/ews.txt -H 'Content-Type: text/xml; charset=utf-8' -X POST -H "SOAPAction:"
Enter host password for user 'domain\user':
* Hostname was NOT found in DNS cache
*   Trying IP OF HOST...
* Connected to exmaple.com (IP OF HOST) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / AES128-SHA
* Server certificate:
* 	 CERTIFICATE DETAILS REMOVED
* 	 SSL certificate verify ok.
* Server auth using NTLM with user 'domain\user'
> POST /EWS/Exchange.asmx HTTP/1.1
> Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
> User-Agent: curl/7.38.0
> Host: example.com
> Accept: */*
> Content-Type: text/xml; charset=utf-8
> Content-Length: 0
> 
< HTTP/1.1 401 Unauthorized
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< request-id: 5349289f-d3d0-4f2c-b1da-3fd6674859a0
< WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADgAAAAGgokC3rlWLkp+sMAAAAAAAAAAALgAuABAAAAABgLwIwAAAA9BTUVSSUNBUwIAEABBAE0ARQBSAEkAQwBBAFMAAQAOAEcAMQBXADYAMgAzADMABAAoAGEAbQBlAHIAaQBjAGEAcwAuAGMAcABxAGMAbwByAHAALgBuAGUAdAADADgARwAxAFcANgAyADMAMwAuAGEAbQBlAHIAaQBjAGEAcwAuAGgAcABxAGMAbwByAHAALgBuAGUAdAAFABYAYwBwAHEAYwBvAHIAcAAuAG4AZQB0AAcACAAr1G8GUwrQAQAAAAA=
< WWW-Authenticate: Negotiate
< X-Powered-By: ASP.NET
< X-FEServer: SHORTNAME REMOVED
< Date: Thu, 27 Nov 2014 15:01:29 GMT
< Content-Length: 0
< 
* Connection #0 to host example.com left intact
* Issue another request to this URL: 'https://example.com/EWS/Exchange.asmx'
* Found bundle for host example.com: 0x2043b20
* Re-using existing connection! (#0) with host example.com
* Connected to example.com (IP OF HOST) port 443 (#0)
* Server auth using NTLM with user 'domain\user'
> POST /EWS/Exchange.asmx HTTP/1.1
> Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAADoAOgAWAAAAAQABABAAQAABQAFAEQBAAAMAAwASQEAAAAAAAAAAAAABoKJAtZXaPeMG3KBnsi5N27FP5ieMBTMeH8mmwepcn/FWfYv35yop945jycBAQAAAAAAAIBCSfxSCtABnjAUzHh/JpsAAAAAAgAQAEEATQBFAFIASQBDAEEAUwABAA4ARwAxAFcANgAyADMAMwAEACgAYQBtAGUAcgBpAGMAYQBzAC4AYwBwAHEAYwBvAHIAcAAuAG4AZQB0AAMAOABHADEAVwA2ADIAMwAzAC4AYQBtAGUAcgBpAGMAYQBzAC4AaABwAHEAYwBvAHIAcAAuAG4AZQB0AAUAFgBjAHAAcQBjAG8AcgBwAC4AbgBlAHQABwAIACvUbwZTCtABAAAAAAAAAABlbWVhd29sZHRsYXB0b3AtbGFuLWs=
> User-Agent: curl/7.38.0
> Host: example.com
> Accept: */*
> Content-Type: text/xml; charset=utf-8
> Content-Length: 3009
> Expect: 100-continue
> 
< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Cache-Control: private
< Content-Type: text/xml; charset=utf-8
* Server Microsoft-IIS/8.0 is not blacklisted
< Server: Microsoft-IIS/8.0
< request-id: e0779f55-fc82-40f0-91aa-15779bc27fb1
< X-CalculatedBETarget: SERVER FQDN REMOVED
< X-AspNet-Version: 4.0.30319
< Set-Cookie: exchangecookie=ID REMOVED; expires=Fri, 27-Nov-2015 15:01:30 GMT; path=/; HttpOnly
< Set-Cookie: X-BackEndCookie=DATA REMOVED; expires=Thu, 27-Nov-2014 15:11:30 GMT; path=/EWS; secure; HttpOnly
< Persistent-Auth: true
< X-Powered-By: ASP.NET
< X-FEServer: SHORTNAME REMOVED
< Date: Thu, 27 Nov 2014 15:01:30 GMT
< Transfer-Encoding: chunked
< 
SOAP DATA REMOVED
