Request.php improved (bug in local request solved)