public function head($request)
    {
        $ch = curl_init();

        $this->setOptions($ch, $request->getUrlStr(), $request->getHeaders());

        // Options specific to HEAD
        curl_setopt($ch, CURLOPT_NOBODY, true);
        curl_setopt($ch, CURLOPT_HEADER, true);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'HEAD');

        $this->logger->debug("HEAD");

        return $this->execute($ch);
    }
public function head($request)
    {
        $ch = curl_init();

        $this->setOptions($ch, $request->getUrlStr(), $request->getHeaders());

        // Options specific to HEAD
        curl_setopt($ch, CURLOPT_NOBODY, true);
        curl_setopt($ch, CURLOPT_HEADER, true);
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'HEAD');

        $this->logger->debug("HEAD");

        return $this->execute($ch);
    }
public function head ( $ request ) { $ ch = curl_init ( ) ; $ this -> setOptions ( $ ch , $ request -> getUrlStr ( ) , $ request -> getHeaders ( ) ) ; // Options specific to HEAD curl_setopt ( $ ch , CURLOPT_NOBODY , true ) ; curl_setopt ( $ ch , CURLOPT_HEADER , true ) ; curl_setopt ( $ ch , CURLOPT_CUSTOMREQUEST , 'HEAD' ) ; $ this -> logger -> debug ( "HEAD" ) ; return $ this -> execute ( $ ch ) ; }
Perform a HEAD request with cURL

@param RESTRequest request A REST request.
@return RESTResponse A REST response.
Perform a HEAD request with cURL