nell'array $_SERVER trovi tutti i dati che ti interessano.