system/core/classes/libraries/http/HttpRequest.php
public function headURL($url, $followRedirects = true, $username = null, $password = null, $headers = array())
    {

        if (function_exists('curl_init')) {

                $contents = $this->curlRequest($url, true, $followRedirects, $username, $password, $headers);
                return $contents;

        } else {

            throw new HttpRequestException('headURL not supported without curl');

        }
    }
public function headURL($url, $followRedirects = true, $username = null, $password = null, $headers = array())
    {

        if (function_exists('curl_init')) {

                $contents = $this->curlRequest($url, true, $followRedirects, $username, $password, $headers);
                return $contents;

        } else {

            throw new HttpRequestException('headURL not supported without curl');

        }
    }
public function headURL ( $ url , $ followRedirects = true , $ username = null , $ password = null , $ headers = array ( ) ) { if ( function_exists ( 'curl_init' ) ) { $ contents = $ this -> curlRequest ( $ url , true , $ followRedirects , $ username , $ password , $ headers ) ; return $ contents ; } else { throw new HttpRequestException ( 'headURL not supported without curl' ) ; } }
Fetch the headers of a URL

@param string $url Fully-qualified URL to request
@param bool   $followRedirects If true, follow redirects to default max of 5
@param string $username Username to use in http authentication header
@param string $password Password to use in http authentication header
@param array  $headers  Array of http headers to append to the existing headers list

@return string Contents of the HTTP headers
@throws HttpRequestException If contents cannot be fetched
Fetch the headers of a URL