ID: 17545 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Analyzed Bug Type: Feature/Change Request Operating System: Er - Does it matter? PHP Version: 4.0CVS-2002-05-31 New Comment:
This is web-server dependant, and at least with Apache there is no clean way to get this information. Previous Comments: ------------------------------------------------------------------------ [2002-06-01 10:36:35] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2002-06-01 02:17:43] [EMAIL PROTECTED] What exactly cannot be accomplished with getallheaders() as it is now? ------------------------------------------------------------------------ [2002-05-31 12:49:48] [EMAIL PROTECTED] 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