public function head($url, array $data = array(), array $extra = array())
    {
        if (!empty($data)) {
            $url = $url . '?' . http_build_query($data);
        }

        $curl = new Curl(array(
            CURLOPT_URL => $url,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_NOBODY => true,
            CURLOPT_POSTFIELDS => http_build_query($data)
        ), $extra);

        return $curl->exec();
    }
public function head($url, array $data = array(), array $extra = array())
    {
        if (!empty($data)) {
            $url = $url . '?' . http_build_query($data);
        }

        $curl = new Curl(array(
            CURLOPT_URL => $url,
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_NOBODY => true,
            CURLOPT_POSTFIELDS => http_build_query($data)
        ), $extra);

        return $curl->exec();
    }
public function head ( $ url , array $ data = array ( ) , array $ extra = array ( ) ) { if ( ! empty ( $ data ) ) { $ url = $ url . '?' . http_build_query ( $ data ) ; } $ curl = new Curl ( array ( CURLOPT_URL => $ url , CURLOPT_RETURNTRANSFER => true , CURLOPT_NOBODY => true , CURLOPT_POSTFIELDS => http_build_query ( $ data ) ) , $ extra ) ; return $ curl -> exec ( ) ; }
Performs HTTP HEAD request

@param string $url Target URL
@param array $data Data to be sent
@param array $extra Extra options
@return mixed
Performs HTTP HEAD request