DirectAdmin\LetsEncrypt\Lib\HTTPSocket::get PHP Method

get() public method

The quick way to get a URL's content :)
public get ( $location, $asArray = FALSE ) : string
return string result body
    function get($location, $asArray = FALSE)
    {
        $this->query($location);
        if ($this->get_status_code() == 200) {
            if ($asArray) {
                return preg_split("/\n/", $this->fetch_body());
            }
            return $this->fetch_body();
        }
        return FALSE;
    }