add todo
This commit is contained in:
@@ -27,10 +27,13 @@ local no_exception, resp, resp_err = pcall(httpc.request_uri, httpc, remote_url,
|
|||||||
method = "GET",
|
method = "GET",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--TODO: send resp.body to Flask API (ai-api) -> convert_mxml_to_xml() -> XML string
|
||||||
|
--local xml = ai-api.convert_mxml_to_xml(resp.body)
|
||||||
|
--ngx.say(xml)
|
||||||
|
|
||||||
ngx.say("RESP -> ", pl.write(resp))
|
--ngx.say("RESP -> ", pl.write(resp))
|
||||||
---- save the content to a file
|
------ save the content to a file
|
||||||
local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode
|
--local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode
|
||||||
f:write(resp.body)
|
--f:write(resp.body)
|
||||||
--
|
----
|
||||||
f:close()
|
--f:close()
|
||||||
|
|||||||
Reference in New Issue
Block a user