public function __construct()
{
if (self::$userAgent == null) {
$locale = setlocale(LC_ALL, null);
if (function_exists('posix_uname')) {
$uname = posix_uname();
self::$userAgent = sprintf('Mozilla/4.0 (compatible; %s; PHP/%s; %s %s; %s)', PHP_SAPI, PHP_VERSION, $uname['sysname'], $uname['machine'], $locale);
} else {
self::$userAgent = sprintf('Mozilla/4.0 (compatible; %s; PHP/%s; %s; %s)', PHP_SAPI, PHP_VERSION, PHP_OS, $locale);
}
}
$this->requestHeader = array();
$this->requestParameter = array();
}