Get information regarding a specific transfer.
Wrapper for PHP function curl_getinfo()

@param int $option The key of the option to get
@return mixed
544559
public function getInfo($option = 0)
    {
        if (0 === $option) {
            return curl_getinfo($this->curl);
        }

        return curl_getinfo($this->curl, $option);
    }
113457
private function curl( $url ) {

		$ch	= curl_init();

		curl_setopt( $ch, CURLOPT_URL, $url );
		curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );

		$data = curl_exec( $ch );

		curl_close( $ch );

		return $data;
	}
789165
public function getOption($name = null, $option = null)
    {
        if (is_null($name)) {
            return $this->_option;
        } else {
            $option || $option = $this->getOption();
            if (strpos($name, '.') !== false) {
                list ($key, $name) = explode('.', $name, 2);
                return isset($option[$key]) && is_array($option[$key]) ? $this->getOption($name, $option[$key]) : null;
            } else {
                return isset($option[$name]) ? $option[$name] : null;
            }
        }
    }
1334382
public function offsetGet($offset)
    {
        if (is_string($offset)) {
            //if it doesn't have a CURL prefix
            if (strpos($offset, 'CURLOPT_') !== 0) {
                $offset = 'CURLOPT_' . $offset;
            }

            if (defined(strtoupper($offset))) {
                $offset = constant(strtoupper($offset));
            }
        }

        return isset($this->options[$offset]) ? $this->options[$offset] : null;
    }
966337
private function getQuestionString(InputOption $option, $default)
    {
        if ('' !== (string) $default) {
            if (stripos($option->getName(), 'password') !== false) {
                return sprintf('%s? [<options=bold>HIDDEN</>]: ', $option->getDescription(), $default);
            }

            return sprintf('%s? [<options=bold>%s</>]: ', $option->getDescription(), $default);
        }

        return sprintf('%s?: ', $option->getDescription());
    }
71730
public function get ($options = NULL) {

		// String = view, array = specific fields
		$view = (sizeof($this->fields) === 0) ? $this->view : $this->fields;
		
		return $this->api->read($this->list_name, $this->limit, $this, $view, NULL, $this->options);
	}
93610
public function getOption($option, $default = NULL)
	{
		return isset($this->options[ $option ]) ? $this->options[ $option ] : $default;
	}
298738
private function getInfo( $opt = false )
   {

      if ( $opt )
      {
         $info = \curl_getinfo( $this->_handle, $opt );
      }
      else
      {
         $info = \curl_getinfo( $this->_handle );
      }

      return $info;

   }
1168527
public function getCurlInfo($option = null)
    {
        return $option ? curl_getinfo($this->ch, $option) : curl_getinfo($this->ch);
    }
970578
public function getLink($option = array()) {
		$option['total'] = $this->_total;
		$option['pageSize'] = $this->_pageSize;
		$option['page'] = $this->_index;
		$option['key'] = $this->_key;
		return PageLink::show($option);
	}
297449
public static function curlGet($url)
    {   
        $defaults = array(
            CURLOPT_URL => $url,
            //CURLOPT_HEADER => 0,
            CURLOPT_RETURNTRANSFER => TRUE,
            //CURLOPT_TIMEOUT => 4
        );
       
        $ch = curl_init();
        curl_setopt_array($ch, $defaults);
        if( ! $result = curl_exec($ch))
        {
            trigger_error(curl_error($ch));
        }
        curl_close($ch);
        return $result;
    }
165286
public function getInfo($opt = null)
    {
        if ($this->curl !== null && $opt === null) {
            return curl_getinfo($this->curl);
        } elseif ($this->curl !== null && $opt !== null) {
            return curl_getinfo($this->curl, $opt);
        } else {
            return [];
        }
    }
157960
public function getUrl($option)
    {
        if ($this->isActive($option)) {
            $params = $this->request->all();

            unset($params[$this->getKey()]);

            return '?'.http_build_query($params);
        }

        return '?'.http_build_query([$this->key => $option] + $this->request->all());
    }
311769
public static function getVersion (string $option = 'FULL') : string
    {
        if ($option === 'MAJOR') :
            $version = explode('.', self::VERSION);
            return $version[0].'.'.$version[1];
        else :
            return self::VERSION;
        endif;
    }
1351092
public function fetchInfo($url)
    {
        $response = null;

        if (function_exists('curl_init')) {
            $ch = curl_init();
            curl_setopt($ch, CURLOPT_URL, $url);
            curl_setopt($ch, CURLOPT_TIMEOUT, 30);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_USERAGENT, 'LarageoPlugin Package v1.0');
            $response = curl_exec($ch);
            curl_close($ch);
        } elseif (ini_get('allow_url_fopen')) {
            $response = file_get_contents($url, 'r');
        } else {
            throw new \Exception('LarageoPlugin requires the CURL PHP extension or allow_url_fopen set to 1!');
        }

        $response = json_decode($response);

        if (empty($response)) {
            throw new \Exception('Ops! The data is empty! Is '.$url.' acessible?');
        }

        if (isset($response->geoplugin_status) && $response->geoplugin_status == 404) {
            throw new \Exception('Ops! Your request returned a 404 error! Is '.$url.' acessible?');
        }

        return $response;
    }
243335
public function getOption($option)
    {
        if ($this->_link) {
            if (defined($option)) {
                if (@ldap_get_option($this->_link, constant($option), $value)) {
                    return $value;
                } else {
                    $err = @ldap_errno($this->_link);
                    if ($err) {
                        $msg = @ldap_err2str($err);
                    } else {
                        $err = NET_LDAP2_ERROR;
                        $msg = Net_LDAP2::errorMessage($err);
                    }
                    return $this->raiseError($msg, $err);
                }
            } else {
                $this->raiseError("Unkown Option requested");
            }
        } else {
            $this->raiseError("No LDAP connection");
        }
    }
76273
public function getInfo($opt = null)
    {
        $args = array();
        $args[] = $this->curl;

        if (func_num_args()) {
            $args[] = $opt;
        }

        return call_user_func_array('curl_getinfo', $args);
    }