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.<div><div><br></div><div>
api = freeswitch.API()</div><div>agent_status_url = "-u userid:password <a href="http://mywebservice.com:8080/status/agent/test">http://mywebservice.com:8080/status/agent/test</a>"</div><div>response = api:execute("curl", agent_status_url)</div>
<div>freeswitch.consoleLog("INFO", response)</div></div><div><br></div><div>Thanks</div><div><br></div>