Je dois déterminer si une requête HTTP était une requête HTTP / 1.0 ou HTTP / 1.1 dans mon script PHP, qui s’exécute sous Apache. Est-il possible d’interroger ces informations?
$_SERVER['SERVER_PROTOCOL']
comme à $_SERVER
Docs :
'SERVER_PROTOCOL'
Nom et révision du protocole d’information via lequel la page a été demandée; c’est-à-dire'HTTP/1.0'
;
Voir aussi: