public function execute()
    {
        if (!is_resource($this->handle)) {
            throw new RuntimeException('Curl handle has been closed, just open it before execute...');
        }

        curl_setopt_array($this->handle, array_filter($this->options));
        $return = curl_exec($this->handle);

        if ($return === false) {
            throw ExceptionFactory::build(
                curl_errno($this->handle),
                curl_error($this->handle)
            );
        }

        return $return;
    }
public function execute()
    {
        if (!is_resource($this->handle)) {
            throw new RuntimeException('Curl handle has been closed, just open it before execute...');
        }

        curl_setopt_array($this->handle, array_filter($this->options));
        $return = curl_exec($this->handle);

        if ($return === false) {
            throw ExceptionFactory::build(
                curl_errno($this->handle),
                curl_error($this->handle)
            );
        }

        return $return;
    }
public function execute ( ) { if ( ! is_resource ( $ this -> handle ) ) { throw new RuntimeException ( 'Curl handle has been closed, just open it before execute...' ) ; } curl_setopt_array ( $ this -> handle , array_filter ( $ this -> options ) ) ; $ return = curl_exec ( $ this -> handle ) ; if ( $ return === false ) { throw ExceptionFactory :: build ( curl_errno ( $ this -> handle ) , curl_error ( $ this -> handle ) ) ; } return $ return ; }
Execute current handle and return result
@throws RuntimeException
@throws CurlException
@return string
Execute current handle and return result