lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

how to post json by request url,it seems does not support send json params

Open Wangxiaobin123 opened this issue 3 years ago • 0 comments

local res, err = httpc:request_uri("XXXX", { ssl_verify = false, keepalive_timeout = 2000, method = "POST", body = cjson.encode("{"token":"aaa"}"), headers = { ["Content-Type"] = "application/json;charset=UTF-8" } })

Wangxiaobin123 avatar May 23 '22 07:05 Wangxiaobin123