note 110763 added to reserved.variables.server
| From: | krinklemail at gmail dot com | Date: | Wed, 05 Dec 2012 11:39:37 +0000 |
| Subject: | note 110763 added to reserved.variables.server | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192272@lists.php.net to get a copy of this message | ||
If requests to your PHP script send a header "Content-Type" or/ "Content-Length"
it will, contrary to regular HTTP headers, not appear in $_SERVER as
$_SERVER['HTTP_CONTENT_TYPE']. PHP removes these (per CGI/1.1 specification[1]) from the
HTTP_ match group.
They are still accessible, but only if the request was a POST request. When it is, it'll be
available as:
$_SERVER['CONTENT_LENGTH']
$_SERVER['CONTENT_TYPE']
[1] https://www.ietf.org/rfc/rfc3875
----
Server IP: 69.147.83.199
Probable Submitter: 72.52.91.2 (proxied: 82.74.194.195)
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.server.php
Edit -- https://master.php.net/note/edit/110763
Del: integrated -- https://master.php.net/note/delete/110763/integrated
Del: useless -- https://master.php.net/note/delete/110763/useless
Del: bad code -- https://master.php.net/note/delete/110763/bad+code
Del: spam -- https://master.php.net/note/delete/110763/spam
Del: non-english -- https://master.php.net/note/delete/110763/non-english
Del: in docs -- https://master.php.net/note/delete/110763/in+docs
Del: other reasons-- https://master.php.net/note/delete/110763
Reject -- https://master.php.net/note/reject/110763
Search -- https://master.php.net/manage/user-notes.php