Search code examples
vbavbscriptwindows-7xmlhttprequest

HTTPS request blocked in Windows7


I am calling a web page from a VB application to perform a validation, something like :

Set objXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")    
...
objXMLHTTP.Open "GET", ls_address, False
objXMLHTTP.Send

The value of objXMLHTTP.Status is 0 in Windows7 and 200 in Windows10. I have a lot of people that started to have this problem yesterday (2018-01-29) so I am thinking that a Windows 7 update might have caused this?

Also, my ls_address is https://... and I have the problem in Windows7, but when I change it to http://... it works again. Both work in Windows10.

Anybody has a clue where to look, Windows Defender, Microsoft Security Essentials, etc. ???


Solution

  • The problem was not with a windows 7 update as I tought first, but rather a security update on the web server that caused trouble only with windows 7 clients.

    As mentionned by Lankymart, it is related to SSL/TLS protocols or cyphers. I am not sure if I could code something different in VBA to make it work. I tried using Server.CreateObject ("MSXML2.XMLHTTP.6.0"), but it did not work in my vba environment.

    As a temporary solution, the update on the web server was undone and everything went back to normal.