Bug #17545 Updated: getallheaders - changed to return text of headers
| From: | php at it-solutions dot org | Date: | Sat, 01 Jun 2002 14:36:35 +0000 |
| Subject: | Bug #17545 Updated: getallheaders - changed to return text of headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9069@lists.php.net to get a copy of this message | ||
ID: 17545
Updated by: php@it-solutions.org
Reported By: php@it-solutions.org
-Status: Feedback
+Status: Open
Bug Type: Feature/Change Request
Operating System: Er - Does it matter?
PHP Version: 4.0CVS-2002-05-31
New Comment:
Ok - as I understand it - getallheaders returns the headers in an
associative array - however if the headers are not formed properly
(such as those where a return type is not specified) it isn't always
possible to break them down into an array. It would be nice to be able
to retrieve the headers in a 'raw' format so that the programmer could
then parse and analyze them himself.
Ben
Previous Comments:
------------------------------------------------------------------------
[2002-06-01 02:17:43] edink@php.net
What exactly cannot be accomplished with getallheaders() as it is now?
------------------------------------------------------------------------
[2002-05-31 12:49:48] php@it-solutions.org
Firstly I love PHP,
Secondly there isn't much it can't do that I want to do
But...
It would be nice if it could do everything that ASP can do (or
everything that is possible - given that it shouldn't have to do
Microsoft BS)
In particular in ASP you can get the Raw request header (using a
function called Request.BinaryRead)
I have not been able to find a way of doing this in PHP. Indeed I got
quite hopeful when I found the getallheaders function - but this turned
out to return another associative array.
Please can we have just the raw text - for cases when poorly written
responders don't output correctly.
Thanks again
Ben
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17545&edit=1