let url = "http://www.baidu.com",
parms = {data: "abc"},
dataType = "string",
timeout = 30,
headers = {UA: "xxxxx"},
res = null
res = laoleng.http.get(url)
if (res) {
logd(JSON.stringify(res))
logd(res.code)
}
logd(laoleng.http.get(url, parms));
ret = laoleng.http.get(url, parms, dataType)
if (ret) {
logd(ret)
}
logd(laoleng.http.get(url, parms, dataType, timeout));
res = laoleng.http.get(url, null, null, timeout)
if (res) {
logd(JSON.stringify(res))
logd(res.code)
}
logd(laoleng.http.get(url, parms, dataType, timeout, headers));