public function exec($keepAlive = false)
	{
		$this->lastResult	= curl_exec($this->curl);
		$this->info			= curl_getinfo($this->curl);

		// Close session
		if (!$keepAlive) curl_close($this->curl);

		return $this->lastResult !== false;
	}
public function exec($keepAlive = false)
	{
		$this->lastResult	= curl_exec($this->curl);
		$this->info			= curl_getinfo($this->curl);

		// Close session
		if (!$keepAlive) curl_close($this->curl);

		return $this->lastResult !== false;
	}
public function exec ( $ keepAlive = false ) { $ this -> lastResult = curl_exec ( $ this -> curl ) ; $ this -> info = curl_getinfo ( $ this -> curl ) ; // Close session if ( ! $ keepAlive ) curl_close ( $ this -> curl ) ; return $ this -> lastResult !== false ; }
Execute and close session

@param bool $keepAlive if true the session will not be closed

@return bool false if execution failed, true otherwise
Execute and close session