/** * Reset the http object state to default values. */ public static function reset() { require_once dirname(__FILE__) . '/http/class.http.php'; self::$_http = new Http(); self::$_http->setTimeout(60); // todo, make this a preference. }
public static function reset() { if (class_exists('cms_http_request')) { // use the CMSMS 1.10 class self::$_http = new cms_http_request(); } else { require_once dirname(__FILE__) . '/http/class.http.php'; self::$_http = new Http(); self::$_http->setTimeout(60); // todo, make this a preference. } }