code: public function info($name = null)
  	{
  		if ($name)
  		{
  			return $this->info ?
  			$this->info[$name] :
  			curl_getinfo($this->curl, "CURLINFO".strtoupper($name));
  		}
  		else
  		{
  			return $this->info ?: curl_getinfo($this->curl);
  		}
  	}
docs: Get session info
  
  @param string $name if set return associated information
  
  @return array|string