<?php
$ch = curl_init('http://localhost/siakad/public/index.php/mahasiswa/syncPT');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$info = curl_getinfo($ch);
echo "HTTP Code: " . $info['http_code'] . "\n";
echo "Response: " . $result . "\n";
if (curl_errno($ch)) {
    echo "cURL Error: " . curl_error($ch) . "\n";
}
curl_close($ch);
