httpRequest放开功能
This commit is contained in:
@@ -153,12 +153,12 @@ end
|
|||||||
do--httpRequest
|
do--httpRequest
|
||||||
client=LOADLIB("NETlib")
|
client=LOADLIB("NETlib")
|
||||||
if client then
|
if client then
|
||||||
function httpRequest(tick,url,method)
|
function httpRequest(tick,url,method,header,body)
|
||||||
local task,err=client.httpraw{
|
local task,err=client.httpraw{
|
||||||
url=url,
|
url=url,
|
||||||
method=method or"GET",
|
method=method or"GET",
|
||||||
-- header={},
|
header=header,
|
||||||
-- body="",
|
body=body,
|
||||||
}
|
}
|
||||||
if task then
|
if task then
|
||||||
TASK.new(tick,{task=task,time=0})
|
TASK.new(tick,{task=task,time=0})
|
||||||
|
|||||||
Reference in New Issue
Block a user