I want to use lua's module "socket.http" to hit gobal Restapi inside my lua script. But orthanc not allowing it. I am using orthanc docker image.
local http = require("socket.http")
function OnStoredInstance(instanceId, tags, metadata, origin)
if origin['RequestOrigin'] ~= 'Lua' then
print(response,status)
RestApiPost('/modalities/modality-name/store', instanceId)
-- Delete the original and the modified instances
RestApiDelete('/instances/' .. instanceId)
end
end
Any help or suggestion will be a great for me