HttpResponse::getLastModified> <HttpResponse::getGzip
Last updated: Fri, 30 Dec 2011

HttpResponse::getHeader

(PECL pecl_http >= 0.12.0)

HttpResponse::getHeaderGet header

Descrição

static mixed HttpResponse::getHeader ([ string $name ] )

Get header(s) about to be sent.

Nota:

Isto não deve funcionar de acordo com o esperado se você esta usando as seguintes SAPI(s): Apache2 w/PHP < 5.1.3.

Parâmetros

name

specifies the name of the header to read; if empty or omitted, an associative array with all headers will be returned

Valor Retornado

Returns either a string containing the value of the header matching name, FALSE on failure, or an associative array with all headers.

Veja Também



User Contributed Notes
HttpResponse::getHeader
part at x dot com
13-Feb-2011 02:59
HOW DO YOU USE THIS?
I tried:
<?php
$ip
= HttpResponse:getHeader("http-x-forwarded-for");
echo
$ip;
?>
I didn't work!

HttpResponse::getLastModified> <HttpResponse::getGzip
Last updated: Fri, 30 Dec 2011