ProCacheTests::urlHeader() method

Get value for specific HTTP header

Usage

// basic usage
$string = $tests->urlHeader(string $url, string $header);

// usage with all arguments
$string = $tests->urlHeader(string $url, string $header, bool $requireCURL = false);

Arguments

NameType(s)Description
$urlstring

URL to test

$headerstring

Header you want to get from test URL

$requireCURL (optional)bool

Require use of CURL rather than other WireHttp methods? Default:false

Return value

string bool

Returns header value on success or boolean false if not present


$tests methods and properties

API reference based on ProcessWire core version 3.0.252