24 Jan
2013
24 Jan
'13
7:50 p.m.
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 http://mywebservice.com:8080/status/agent/test" response = api:execute("curl", agent_status_url) freeswitch.consoleLog("INFO", response) Thanks