$ticket = $cookies = null;
$data = 'username=mir@miras.org&password=Clara0503';
-$response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '')
+$response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '');
if ($response['http_code'] >= 200 && $response['http_code'] <= 204) {
$ticket = json_decode($response['content']);
$cookies = $response['cookies'];
<pre>
<?php
print_r($response);
-print "Ticket: $ticket\nCookies: $cookies";
+print "Ticket: \n".var_export($ticket,true)."Cookies: $cookies";
?>
</pre>
</body>