public function execute($resetAfterExecution = false)
    {
        $this->buildRequest();

        $response = new CurlPlusResponse(
            curl_exec($this->ch),
            curl_getinfo($this->ch),
            curl_error($this->ch),
            $this->getCurlOpts()
        );

        if ($resetAfterExecution)
            $this->reset();

        return $response;
    }
public function execute($resetAfterExecution = false)
    {
        $this->buildRequest();

        $response = new CurlPlusResponse(
            curl_exec($this->ch),
            curl_getinfo($this->ch),
            curl_error($this->ch),
            $this->getCurlOpts()
        );

        if ($resetAfterExecution)
            $this->reset();

        return $response;
    }
public function execute ( $ resetAfterExecution = false ) { $ this -> buildRequest ( ) ; $ response = new CurlPlusResponse ( curl_exec ( $ this -> ch ) , curl_getinfo ( $ this -> ch ) , curl_error ( $ this -> ch ) , $ this -> getCurlOpts ( ) ) ; if ( $ resetAfterExecution ) $ this -> reset ( ) ; return $ response ; }
Execute CURL command

@param bool $resetAfterExecution
@throws \RuntimeException
@return \DCarbone\CurlPlus\CurlPlusResponse
Execute CURL command