I have read this post,
https://www.autohotkey.com/boards/viewtopic.php?f=5&t=16083
UrlDownloadToFile can be recognized correctly. Is there a solution for WinHttp?
For example,
Code: Select all
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://ipmsg.org/protocol.txt", true)
whr.Send()
whr.WaitForResponse()
MsgBox % whr.ResponseText