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

Yossi Neiman mishehu at freeswitch.org
Mon Feb 9 10:14:52 MSK 2015


It is not currently possible to set arbitrary headers on mod_curl's curl 
API call (which is what you're using).  But on my limited free time I'm 
working on some improvements to mod_curl.  You can feel free to add in 
some comments to FS-6753, and we'll see what we can do.

-Yossi

On 02/08/2015 07:45 PM, Roland Selmer wrote:
>
> 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?
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




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