mikeypsooner
New Member
- Joined
- May 16, 2017
- Messages
- 33
I am currently trying to pull some data on the internet using the code below but I am getting the run-time error message of "the connection with the server was terminated abnormally" This code used to work but I recently got upgraded to Windows10 and I just now tried and didnt work. Any thoughts?
Code:
Sub http()
Dim MyRequest As Object
Set MyRequest = CreateObject("WinHttp.WinHttpRequest.5.1")
MyRequest.Open "GET", _
"http://www.google.com"
' Send Request.
MyRequest.send
'And we get this response
MsgBox MyRequest.responseText
End Sub