I need to determine whether an HTTP request was an HTTP/1.0 or an HTTP/1.1 request in my PHP script, which is running under Apache. Is there a way to query this information?
$_SERVER['SERVER_PROTOCOL']
as at $_SERVER
Docs:
'SERVER_PROTOCOL'
Name and revision of the information protocol via which the page was requested; i.e.'HTTP/1.0'
;
See as well:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With