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
| Name | Type(s) | Description |
|---|---|---|
$url | string | URL to test |
$header | string | 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 boolReturns header value on success or boolean false if not present
API reference based on ProcessWire core version 3.0.252