stampa tutto l'array e vedi quello che ti serve...

echo "<pre>";
print_r($_SERVER);