* Network.httpGet(url string, cbok function, cbfail function, timeoutMS int) ``` local callback = function(data) print(data) end Network.httpGet(url, function(httpcode, content) if httpcode == 200 --[[http ok]]-- then if callback and type(callback) == "function" then callback(content) end end end, function(httpcode) print(httpcode) end, 10) ``` * Network.httpRawPostWithTimeout(url string, headerParams table, raw string, cbok function, timeoutMS int, cbfail function) ``` local callback = function(data) print(data) end local header = {["Content-Type"] = "application/json;charset=utf-8"} local raw = json:encode({testdata = 1}) Network.httpRawPostWithTimeout(url, header, raw, function(httpcode, content) if httpcode == 200 then if callback and type(callback) == "function" then callback(content) end end end, 60, function(httpcode) print(httpcode) end) ``` * Network.httpPost(url string, headerParams table, raw string, cbok function, cbfail function, timeoutMS int) ``` local callback = function(data) print(data) end local header = {["Content-Type"] = "application/json;charset=utf-8"} local raw = json:encode({testdata = 1}) Network.httpPost(url, header, raw, function(httpcode, content) if httpcode == 200 --[[http ok]]-- then if callback and type(callback) == "function" then callback(content) end end end, function(httpcode) print(httpcode) end, 10) ```