]> git.datanom.net - qtadmin.git/blobdiff - rest_client.php
prepare for wblistadm server
[qtadmin.git] / rest_client.php
index 75188f4d17c2c131c0d700c0b9b3b866c86c4636..afee92a5935dda7cb174214c9933a87242cec953 100644 (file)
@@ -27,8 +27,8 @@ $util = new Utils;
 
 $ticket = $cookies = null;
 $data = 'username=mir@miras.org&password=Clara0503';
-$response = $util->RESTCall($CFG->wblistadm_url.'/ticket', $data, $cookiesIn = '')
-if ($response['http_code'] >= 200 and $response['http_code'] <= 204) {
+$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'];
 }
@@ -48,7 +48,7 @@ if ($response['http_code'] >= 200 and $response['http_code'] <= 204) {
 <pre>
 <?php
 print_r($response);
-print "Ticket: $ticket\nCookies: $cookies";
+print "Ticket: \n".var_export($ticket,true)."Cookies: $cookies";
 ?>
 </pre>
 </body>
This page took 0.028754 seconds and 5 git commands to generate.