- API -
retval, response = reaper.AZ_Http_Post(url, reqHeaders, reqBody, queryParams)
- API Detail-
▼Input value
url(string) : url
reqHeaders(StringMap): Headers (optional, default: empty)
reqBody(string): Body (optional, default: empty string)
queryParams(StringMap): Query parameters (optional, default: empty)
▼Output value
retval(boolean) : result
response(HttpResponse) : Response
- SCRIPT -
dofile(reaper.AZ_GetLuaInitPath())
require("reaper_AZSTOKE_SILVER")
function showObject(object, depth)
local obj = object
if depth == nil then depth = 0 end
if(type(obj) == "table") then
Msg("")
for k, v in pairs(obj) do
for i = 1, depth, 1 do reaper.ShowConsoleMsg(" ") end
reaper.ShowConsoleMsg(tostring(k) .. " : ")
showObject(v, depth + 4)
end
else
Msg(obj)
end
end
url = "https://......." -- 通信先URL
headers = {
header1 = "val1",
hed2 = "2"
}
body = "test/testbody"
queryParams = {
param1 = "1",
param2 = "a"
}
retval, response = reaper.AZ_Http_Put(url, headers, body, queryParams)
Msg(retval)
showObject(response)
Msg(reaper.AZ_GetErrorCode())
Http
AZ_Http_Post
Supported versions:
1.2.0
onwards
[http-Post] Communication
