get_headers

Supported Versions: PHP 5, PHP 7, PHP 8
Fetches all the headers sent by the server in response to an HTTP request
<?php get_headers(string $url, bool $associative = false, ?resource $context = null): array|false
<?php         $resolvedUrl = URL::assemble($this->getAbsoluteUrl($url), $filename);



        $headers = get_headers($resolvedUrl);



        unlink($tmp);