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