PHP Doku:: Get response header(s) - function.httprequest-getresponseheader.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPThe HttpRequestHttpRequest::getResponseHeader

Ein Service von Reinhard Neidl - Webprogrammierung.

The HttpRequest

<<HttpRequest::getResponseData

HttpRequest::getResponseInfo>>

HttpRequest::getResponseHeader

(PECL pecl_http >= 0.10.0)

HttpRequest::getResponseHeaderGet response header(s)

Beschreibung

public mixed HttpRequest::getResponseHeader ([ string $name ] )

Get response header(s) after the request has been sent.

If redirects were allowed and several responses were received, the data references the last received response.

Parameter-Liste

name

header to read; if empty, all response headers will be returned

Rückgabewerte

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


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)