public function get($request)
    {

        $ch = curl_init();

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

        // Options specific to GET
        curl_setopt($ch, CURLOPT_HTTPGET, true);

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

        return $this->execute($ch);
    }
public function get($request)
    {

        $ch = curl_init();

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

        // Options specific to GET
        curl_setopt($ch, CURLOPT_HTTPGET, true);

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

        return $this->execute($ch);
    }
public function get ( $ request ) { $ ch = curl_init ( ) ; $ this -> setOptions ( $ ch , $ request -> getUrlStr ( ) , $ request -> getHeaders ( ) ) ; // Options specific to GET curl_setopt ( $ ch , CURLOPT_HTTPGET , true ) ; $ this -> logger -> debug ( "GET" ) ; return $ this -> execute ( $ ch ) ; }
Perform a GET request with cURL

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