[Freeswitch-users] Passing credentials when invoking "curl"

JP jaykris at gmail.com
Thu Jan 24 22:50:02 MSK 2013

I am trying to use curl from a lua script to get data from a webservice and
need to pass user/password information. Can someone help me with this? Here
is what I am doing, which does not seem to work.

api = freeswitch.API()
agent_status_url = "-u userid:password
response = api:execute("curl", agent_status_url)
freeswitch.consoleLog("INFO", response)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130124/3a248f8c/attachment.html 

Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list