Get the last HTTP response headers (normal array).
Useful to examine for errors if your request returned false
However, the Wire
(plural) method may be better
and this one is kept primarily for backwards compatibility.
Usage
// basic usage
$array = $http->getResponseHeader();
// usage with all arguments
$array = $http->getResponseHeader(string $key = '');
Arguments
Name | Type(s) | Description |
---|---|---|
key (optional) | string | Optional header name you want to get |
Return value
array
string
null
API reference based on ProcessWire core version 3.0.236