Grab informations from an url:
- final url (after potential redirection)
- raw content
- content type header.
public fetch ( string $url, boolean $skipTypeVerification = false, array $httpHeader = [] ) : array | ||
$url | string | |
$skipTypeVerification | boolean | Avoid mime detection which means, force GET instead of potential HEAD |
$httpHeader | array | Custom HTTP Headers from SiteConfig |
return | array | With keys effective_url, body & headers |