<div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1424849201856_102810"><span></span></div><div id="yui_3_16_0_1_1424849201856_102810" dir="ltr"><span>I do:</span></div><div id="yui_3_16_0_1_1424849201856_102810" dir="ltr"><span><br></span></div><div class="" style="" id="yui_3_16_0_1_1424849201856_102983">$ch = curl_init();</div><div class="" style="" id="yui_3_16_0_1_1424849201856_102984"><span class="" style="">        </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, <span class="" style="">false</span>);</div><div class="" style="" id="yui_3_16_0_1_1424849201856_102985"><span class="" style="">    </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_RETURNTRANSFER, <span class="" style="" id="yui_3_16_0_1_1424849201856_103168">true</span>);</div><div class="" style=""><span class="" style="">     </span><span class="" style=""> </span></div><div class="" style="" id="yui_3_16_0_1_1424849201856_102986"><span class="" style="" id="yui_3_16_0_1_1424849201856_103023"><span class="" style="">        </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_URL,</span>"http://192.168.56.12:8088/ari/events?app=promozione"<span class="" style="">);</span></div><div class="" style="" id="yui_3_16_0_1_1424849201856_103022"><span class="" style=""> </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_RETURNTRANSFER, <span class="" style="" id="yui_3_16_0_1_1424849201856_103169">true</span>);</div><div class="" style="" id="yui_3_16_0_1_1424849201856_103021"><span class="" style="">    </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);</div><div class="" style="" id="yui_3_16_0_1_1424849201856_103020"><span class="" style="">  </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_FOLLOWLOCATION, <span class="" style="" id="yui_3_16_0_1_1424849201856_103170">true</span>);</div><div class="" style="" id="yui_3_16_0_1_1424849201856_103029"><span class="" style="">    </span><span class="" style=""> </span>curl_setopt($ch, CURLOPT_USERPWD, <span class="" style="" id="yui_3_16_0_1_1424849201856_103171">"asterisk:asterisk"</span>);</div><div id="yui_3_16_0_1_1424849201856_102810" dir="ltr">
























</div><div class="" style="" id="yui_3_16_0_1_1424849201856_103007"><span class="" style="">        </span><span class="" style=""> </span>$result=curl_exec($ch);</div><div class="" style="" id="yui_3_16_0_1_1424849201856_102989"><br></div><div class="" style="" id="yui_3_16_0_1_1424849201856_103013"><span class="" style="">print </span><span class="" style="">"error:" </span>. curl_error($ch) . <span class="" style="" id="yui_3_16_0_1_1424849201856_103012">"<br />"</span>;</div><div class="" style="" id="yui_3_16_0_1_1424849201856_102988">








</div><div class="" style="" id="yui_3_16_0_1_1424849201856_103014"><span class="" style=""><span class="" style="">      </span><span class="" style=""> </span></span><span class="" style="">print </span>"out:" <span class="" style="">. $result . </span>"<br />"<span class="" style="" id="yui_3_16_0_1_1424849201856_103172">;</span></div><div id="yui_3_16_0_1_1424849201856_102810"><span><br></span></div><div id="yui_3_16_0_1_1424849201856_102810" dir="ltr"><span>it result me:</span></div><pre id="line1" class="" style=""><span title="Rilevato doctype in posizione errata." class="" style="" id="yui_3_16_0_1_1424849201856_102884"><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"></span>
<span id="line2" class="" style=""></span><span title="Rilevato tag di apertura “html” in posizione errata." class="" style=""><<span class="" style="">html</span>></span><span title="Rilevato tag di apertura “head” in posizione errata." class="" style="" id="yui_3_16_0_1_1424849201856_102885"><<span class="" style="">head</span>></span>
<span id="line3" class="" style=""></span><<span class="" style="">title</span>>426 Upgrade Required</<span class="" style="">title</span>>
<span id="line4" class="" style=""></span><span title="Rilevato tag di chiusura “head” in posizione errata." class="" style=""></<span class="" style="">head</span>></span><span title="Rilevato tag di apertura “body” in presenza di un elemento dello stesso tipo già aperto." class="" style=""><<span class="" style="">body</span>></span>
<span id="line5" class="" style=""></span><<span class="" style="">h1</span>>Upgrade Required</<span class="" style="">h1</span>>
<span id="line6" class="" style=""></span><<span class="" style="">p</span>>(null)</<span class="" style="">p</span>>
<span id="line7" class="" style=""></span><<span class="" style="">hr</span> />
<span id="line8" class="" style=""></span><<span class="" style="">address</span>>Asterisk Server</<span class="" style="" id="yui_3_16_0_1_1424849201856_102886">address</span>>
<span id="line9" class="" style=""></span></<span class="" style="">body</span>></<span class="" style="">html</span>>
<span id="line10" class="" style=""></span><span title="Rilevato tag di apertura “br” in posizione errata." class="" style=""><<span class="" style="">br</span> /></span></pre><pre id="line1" class="" style=""><span title="Rilevato tag di apertura “br” in posizione errata." class="" style="" id="yui_3_16_0_1_1424849201856_103030"><font face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif" id="yui_3_16_0_1_1424849201856_103128">I didn't understand what do "</font></span><span style="font-family: verdana, helvetica, sans-serif;" class="" id="yui_3_16_0_1_1424849201856_103144">/ari/events" ? </span></pre><pre id="line1" class="" style=""><span style="font-family: verdana, helvetica, sans-serif;" class="" id="yui_3_16_0_1_1424849201856_103145">in post it's clear  (it launch a n event to websocket), but this command "events" in get?</span></pre><pre id="line1" class="" style=""><span style="font-family: verdana, helvetica, sans-serif;" class="">thanks</span></pre><pre id="line1" class="" style=""><span style="font-family: verdana, helvetica, sans-serif;" class=""><br></span></pre><pre id="line1" class="" style=""><span title="Rilevato tag di apertura “br” in posizione errata." class="" style=""><br></span></pre><div></div><div id="yui_3_16_0_1_1424849201856_102809"> </div><div class="signature" id="yui_3_16_0_1_1424849201856_102807"><div id="yui_3_16_0_1_1424849201856_102806"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);" id="yui_3_16_0_1_1424849201856_102808">_______________________________________________________________________</span><br style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);"><span style="font-family:arial, helvetica, sans-serif;color:rgb(208, 208, 208);">Oscar OXY</span><br></div></div></div>