Re: Re: Are all HTTP headers registered in SERVER?

From: Date: Fri, 09 Sep 2011 17:14:36 +0000
Subject: Re: Re: Are all HTTP headers registered in SERVER?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-55336@lists.php.net to get a copy of this message
hi, On Fri, Sep 9, 2011 at 5:56 PM, Matthew Weier O'Phinney <weierophinney@php.net> wrote: > On 2011-09-08, Karoly Negyesi <karoly@negyesi.net> wrote: >> It seems to be the case but this is not documented anywhere on >> php.net. Instead >> >> http://php.net/manual/en/function.apache-request-headers.php say >> "You >> can also get at the value of the common CGI variables by reading them >> from the environment". By the way, it is maybe important to notice that this function is not apache specific (yes, bad naming). We may alias it and create a new one called sapi_get_request_headers or something along this line instead. > That said, I'd really love to have a method in PHP for retrieving request > headers, either singly or as a list. Having to parse through $_SERVER has always > felt hackish. Yes, a common function for all SAPIs make sense. Let see if we can get the sapi_get_request/answer_headers in place for 5.4 using exising ones. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#55336) next »