I'm trying to check a webpage if it is logged in or not. For that I used win http GET request for google to test it. But i'm getting
"The Operation Timed Out" Error
after Send command.
Also Tried with xmlHTTP and serverxmlHTTP.
Dim xmlHTTP As Object
Dim html As Object
Dim url As String
url = "https://www.google.com/"
'
'Set xmlHTTP = CreateObject("MSXML2.XMLHTTP")
Set xmlHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
xmlHTTP.SetTimeouts 10000, 10000, 10000, 10000
xmlHTTP.Open "GET", url, False
'xmlHTTP.setRequestHeader "Content-Type", "text/xml"
xmlHTTP.send
Set html = CreateObject("htmlfile")
html.body.innerHTML = xmlHTTP.responseText
"The Operation Timed Out" Error after Send command.