We are trying to build a custom 500 error php page that retry the POST or GET form in 30 seconds again, we are using moodle for exams but sometimes we have a lot of students doing the same exam, any idea how to fix this problem? So far we can retry if the parameters are like xxx.php?name=doe but not if they come in an array form like $_post
<?php
function my_url(){
$url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
echo "<meta http-equiv=\"refresh\" content=\"30;url=$url\"/>";
}
my_url();
?>