Mike,<br><br>Thank you.&nbsp; I was confused and it is working now.<br><br>Jonathan<br><br><br><div class="gmail_quote">On Tue, Dec 30, 2008 at 1:40 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</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="">session:execute runs a freeswitch app, you want to be executing the fsapi command using API:execute<div>
Mike</div><div class="Ih2E3d"><div><br><div><br><div><div>On Dec 30, 2008, at 4:16 PM, jonathan augenstine wrote:</div><br><blockquote type="cite">Mike,<br><br>I executed the following:<br><br>From CLI:<br>http get <a href="http://www.google.com" target="_blank">http://www.google.com</a> {}<br>
<br>This comes back with the HTTP response and prints it to the console.&nbsp; I tried to execute the following:<br> <br>response = session:execute(&quot;http&quot;, &quot;get <a href="http://www.google.com" target="_blank">http://www.google.com</a> {}&quot;);<br>
<br>What I am unable to figure out how to do is retrieve HTTP response.&nbsp; 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">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>&gt;</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>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><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.&nbsp; From the script, I have a requirement to retrieve information via HTTP from an app server.&nbsp; I have utilized the HTTP application from the Freeswitch CLI.&nbsp; It works great.&nbsp; My question is how can I call the &quot;http get <a href="http://www." target="_blank">http://www.</a>......&quot; from within the LUA script and retrieve the HTTP response?&nbsp; Is this feasible?&nbsp; Or is there a way to make an HTTP request directly from LUA?<br>
 </blockquote></div></div></div></div></blockquote></div></blockquote></div><br></div></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>