[Freeswitch-users] Setting Headers in a LUA mod_curl call

Roland Selmer roland.selmer at gmail.com
Mon Feb 9 04:45:45 MSK 2015



Is it possible to set arbitrary headers on a LUA mod_curl call like you would using the -H flag on a standard CURL?

i.e. the equivalent of this

curl -H “token: 1234" http://192.168.100.100:5000/v2.0/tokens
for this kind of call

session:execute("curl", "https://api.acme.com”) <——How does one specify a token header of 1234?






Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list