ComObjError(false)
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://yandex.ru/")
whr.WaitForResponse(5000)
whr.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
whr.SetRequestHeader("User-Agent", "AutoHotkey")
whr.Send()
MsgBox, % whr.ResponseText