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
- 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.
- 18 Apr. 2012 02:59am #2
Doc wrote this several years ago.
And I'd personally advise against the use of this. Simply ancient, inefficient legacy code.
Instead, here's an HTTP wrapper I wrote a while back. Just as simple (if not more simple), but more comprehensive. Also bundled with a few Gaia methods (working Gaia login, etc). Contains a few other snippets also.
If anyone needs any guidelines on how to use this (or any questions, comments, or concerns for that matter), post here.
- 18 Apr. 2012 06:46pm #3
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 0.00