prova a fare un print_r($_SERVER,true) e vedi se c'è quello che ti serve...