<div dir="ltr">Thanks Aleksandr!  I was hoping to avoid having to parse the headers/json but I guess I&#39;ll have to.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 8:45 PM, Aleksandr Chusov <span dir="ltr">&lt;<a href="mailto:chusov.alexsandr@gmail.com" target="_blank">chusov.alexsandr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_extra"><br><div class="gmail_quote">2015-04-17 4:21 GMT+03:00 Oleg Stolyar <span dir="ltr">&lt;<a href="mailto:olegstolyar@gmail.com" target="_blank">olegstolyar@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>resp = api:execute(&quot;curl&quot;, some_url)</div><div><br></div><div>where can I get the curl response code?</div></blockquote></div><br><br></div></span><div class="gmail_extra">I use json<br><br>   local response = api:execute(&quot;curl&quot;, url .. &quot; json timeout 2 get &quot;)<br>   resp = json.decode(response)<br>   <br>   if  resp.status_code ~= 200 then <br>   .... <br></div><div class="gmail_extra"><br></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br></div>