Hi,

I have tried to make a HTTP POST request from LUA  script but it does not work correctly in any way.

This is an example of the errors that I have obtained:

09802b39-524f-4011-ada7-418e6a870248 2018-08-03 12:23:07.981581 [ERR] mod_lua.cpp:203 error loading module socket.core from file /usr/local/lib/lua/5.1/socket/core.so:
09802b39-524f-4011-ada7-418e6a870248 /usr/local/lib/lua/5.1/socket/core.so: undefined symbol: lua_pcall
09802b39-524f-4011-ada7-418e6a870248 stack traceback:
09802b39-524f-4011-ada7-418e6a870248 [C]: in ?
09802b39-524f-4011-ada7-418e6a870248 [C]: in function require
09802b39-524f-4011-ada7-418e6a870248 /usr/local/share/lua/5.1/socket.lua:12: in main chunk
09802b39-524f-4011-ada7-418e6a870248 [C]: in function require
09802b39-524f-4011-ada7-418e6a870248 /usr/local/share/lua/5.1/socket/http.lua:10: in main chunk
09802b39-524f-4011-ada7-418e6a870248 [C]: in function require
09802b39-524f-4011-ada7-418e6a870248 /usr/share/freeswitch/scripts/test.lua:3: in main chunk


The lua script is:

local http = require "socket.http";

local req_url = "http://localhost/"

http.request{
  url = req_url,
  method = "POST"
}


I tried several tutorials and several configurations:

And some other things that I do not remember but always fail for some "undefined symbol".

Any ideas? Thanks!

José D.