This is an extremely nice and simple http wrapper I found for AutoIt, and you can even set headers and all of that.
Credit goes to whoever wrote it, I have no idea who.Code:$oHTTP = ObjCreate("winhttp.winhttprequest.5.1") ConsoleWrite(_HTTPRequest($oHTTP, "GET", "http://google.com") & @CRLF) Func _HTTPRequest($oHTTP, $oMethod, $oURL, $oData = "") $oHTTP.Open($oMethod, $oURL, False) If $oMethod = "POST" Then $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") $oHTTP.Send($oData) Return $oHTTP.ResponseText EndFunc
Results 1 to 3 of 3
Threaded View
- 15 Apr. 2012 10:10pm #1
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 0.00
[AutoIt] A nice AutoIt http wrapper I found
Last edited by 323; 15 Apr. 2012 at 10:12pm.