开发者

How do I find out the version of HTTP in a request using PHP and Apache

开发者 https://www.devze.com 2022-12-27 22:22 出处:网络
I need to determine whe开发者_开发知识库ther 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[\

I need to determine whe开发者_开发知识库ther 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 $_SERVERDocs:

'SERVER_PROTOCOL'
Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0';

See as well:

  • Find out HTTP method in PHP
0

精彩评论

暂无评论...
验证码 换一张
取 消