Show pageOld revisionsBacklinksFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== WinHttp.WinHttpRequest.5.1 ====== As documented on [[https://docs.microsoft.com/en-us/windows/win32/winhttp/winhttprequest|MSDN]]. The WinHttp.WinHttpRequest.5.1 object (referred to as "WinHttp") can be used to make complex HTTP requests, including different HTTP methods (GET, SET, ...) and arbitrary headers (Context-Type, ...) along with any body data. ===== Usage ===== <code AutoHotkey> WinHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") WinHTTP.Open(<Method>, <URL>, false) WinHTTP.Send(<BodyData>) </code> ===== Examples ===== ==== Fetch current AHK_L version number ==== <code AutoHotkey> WinHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") WinHTTP.Open("GET", "https://www.autohotkey.com/download/1.1/version.txt", false) WinHTTP.Send() MsgBox, % "AHK 1.1 is currently on version: " WinHTTP.ResponseText </code>