Example #1
0
 /**
  * Quick Init
  *
  * Returns a new instance of the class. <var>$path</var> is an output variable.
  *
  * @param string	$url				Request URL
  * @param string	&$path			Resulting path
  * @return netHttp
  */
 public static function initClient($url, &$path)
 {
     if (!self::readUrl($url, $ssl, $host, $port, $path, $user, $pass)) {
         return false;
     }
     $client = new self($host, $port);
     $client->useSSL($ssl);
     $client->setAuthorization($user, $pass);
     return $client;
 }