Thanks Aleksandr! I was hoping to avoid having to parse the headers/json but I guess I'll have to. On Thu, Apr 16, 2015 at 8:45 PM, Aleksandr Chusov < chusov.alexsandr@gmail.com> wrote:
2015-04-17 4:21 GMT+03:00 Oleg Stolyar <olegstolyar@gmail.com>:
resp = api:execute("curl", some_url)
where can I get the curl response code?
I use json
local response = api:execute("curl", url .. " json timeout 2 get ") resp = json.decode(response)
if resp.status_code ~= 200 then ....
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org