'temporary')), 'temporary'); } else if ($_SERVER['PHP_SELF'] == "/perm_redirect") { it_url::redirect(U("redirect_target", array('type' => 'permanent')), 'permanent'); } else if ($_SERVER['PHP_SELF'] == "/redirect_loop") { if ($_REQUEST['num'] > 0) it_url::redirect(U("redirect_loop", array('num' => $_REQUEST['num'] - 1))); } else if ($_SERVER['PHP_SELF'] == "/redirect_target") { echo 'Testserver output after ' . $_REQUEST['type'] . ' redirect'; }