diff --git a/test_scripts/test_upt.lua b/test_scripts/test_upt.lua index 2563655..93989f8 100644 --- a/test_scripts/test_upt.lua +++ b/test_scripts/test_upt.lua @@ -27,10 +27,13 @@ local no_exception, resp, resp_err = pcall(httpc.request_uri, httpc, remote_url, 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)) ----- save the content to a file -local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode -f:write(resp.body) --- -f:close() +--ngx.say("RESP -> ", pl.write(resp)) +------ save the content to a file +--local f = assert(io.open('test.jpg', 'wb')) -- open in "binary" mode +--f:write(resp.body) +---- +--f:close()