[Freeswitch-users] Passing credentials when invoking "curl"
gamar at center.com
Thu Jan 24 23:04:57 MSK 2013
If it is a basic authentication, you can try
not sure it works try first a direct from command line :
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of JP
Sent: Thursday, January 24, 2013 11:50 AM
To: FreeSWITCH Users Help
Subject: [Freeswitch-users] Passing credentials when invoking "curl"
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)
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users