note 124236 added to function.apache-request-headers

From: Date: Thu, 26 Sep 2019 01:54:43 +0000
Subject: note 124236 added to function.apache-request-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-212358@lists.php.net to get a copy of this message
Although we expect to see headers in mixed case, the standard RFC2616 demands that "field names are case-insensitive". PHP delivers the headers exactly untouched in whatever way the client sent them. Potentially you should expect to get any type of uppercase or lowercase or mixed. Thus, if you want to be standards compliant, you must loop through every key and check it in a case-insensitive manner, instead of doing the obvious thing and using the name of the header as an array index. ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.54 (proxied: 14.200.55.92) ---- Manual Page -- http://php.net/manual/en/function.apache-request-headers.php Edit -- https://master.php.net/note/edit/124236 Del: integrated -- https://master.php.net/note/delete/124236/integrated Del: useless -- https://master.php.net/note/delete/124236/useless Del: bad code -- https://master.php.net/note/delete/124236/bad+code Del: spam -- https://master.php.net/note/delete/124236/spam Del: non-english -- https://master.php.net/note/delete/124236/non-english Del: in docs -- https://master.php.net/note/delete/124236/in+docs Del: other reasons-- https://master.php.net/note/delete/124236 Reject -- https://master.php.net/note/reject/124236 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212358) next »