Mike,<br><br>I executed the following:<br><br>From CLI:<br>http get <a href="http://www.google.com">http://www.google.com</a> {}<br><br>This comes back with the HTTP response and prints it to the console. I tried to execute the following:<br>
<br>response = session:execute("http", "get <a href="http://www.google.com">http://www.google.com</a> {}");<br><br>What I am unable to figure out how to do is retrieve HTTP response. That is my dilemma.<br>
<br>Jonathan<br><br><div class="gmail_quote">On Tue, Dec 30, 2008 at 12:57 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">you can execute the freeswitch api command like any other api command or use any loadable lua module available to do this.<div><br></div><div><br></div><div>Mike</div><div class="Ih2E3d"><div><br><div><div>On Dec 30, 2008, at 3:36 PM, jonathan augenstine wrote:</div>
<br><blockquote type="cite">I am developing a Freeswitch/LUA script. From the script, I have a requirement to retrieve information via HTTP from an app server. I have utilized the HTTP application from the Freeswitch CLI. It works great. My question is how can I call the "http get <a href="http://www." target="_blank">http://www.</a>......" from within the LUA script and retrieve the HTTP response? Is this feasible? Or is there a way to make an HTTP request directly from LUA?<br>
</blockquote></div><br></div></div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>