I am sending XMLs over POST via the MSXML2.XMLHTTP object:
' Create objects to DOMDocument and XMLHTTP
Set objDom = CreateObject("MSXML2.DOMDocument")
Set objXmlHttp = CreateObject("MSXML2.XMLHTTP")
' Load XML
objDom.async = False
objDom.LoadXml XmlBody
' Open the webservice
objXmlHttp.open "POST", Url, False
' Create headings
objXmlHttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXmlHttp.setRequestHeader "Content-Length", Len(XmlBody)
' Send XML command
objXmlHttp.send objDom.xml</code></pre>
I understood that MSXML2.XMLHTTP is sending over TLS 1.0. The system where I am sending my data to will be disabling 1.0 and 1.1 and will only use 1.2. Is there a way to also send data over TLS 1.2 with Lotusscript and IF possible via MSXML2.XMLHTTP?
My server is using Domino 9, FP10.
SOLUTION:
Changed:
Set objXmlHttp = CreateObject("MSXML2.XMLHTTP")
to
Set objXmlHttp = CreateObject("WinHttp.WinHttpRequest.5.1")
'force TLS 1.2
objXmlHttp.Option(9) = 2048
objXmlHttp.Option(6) = True
This worked. Checked with Wireshark, post is going over TLS1.2.
Also used:
Set objDom = CreateObject("MSXML2.DOMDocument")