My client sent me this reminder: "We advised last August that we are intending to stop support for TLS 1.0 and we recommend that you move your software applications to use TLS 1.2 or higher."
Now, I don't know if I need to update the tool.
As they share the tool to thousands of people there is no standard of the environment. For example, there are people using WIN 7 + Office 2010, there are people using WIN 10 + Office 365 ...
Dim objXmlHttp As Object
Set objXmlHttp = CreateObject("MSXML2.XMLHTTP")
objXmlHttp.Open "GET", sXML, False
'Create headings
objXmlHttp.setRequestHeader "Content-Type", "application/json" '"text/xml; charset=utf-8"
objXmlHttp.setRequestHeader "SOAPAction", SoapActionUrl
objXmlHttp.setRequestHeader "Accept", "application/vnd.hmrc.1.0+json"
objXmlHttp.setRequestHeader "Authorization", "Bearer " & Sheet3.Range("h9").Value
objXmlHttp.setRequestHeader "Gov-Client-Connection-Method", "DESKTOP_APP_DIRECT"
'Send XML command
objXmlHttp.send objDom.XML
I tested but I couldn't find errors, but maybe, as I am using WIN 10 + Office 365 I have all my libraries up-to-date.
I just read that the WinHttp.WinHttpRequest.5.1
library would solve it. But I am not sure.
So, do I need to change anything?