/** * Get the default User-Agent to add to requests sent through the library * * @return string */ public static function getDefaultUserAgent() { if (!self::$userAgent) { self::$userAgent = sprintf('Guzzle/%s curl/%s PHP/%s', Version::VERSION, CurlVersion::getInstance()->get('version'), PHP_VERSION); } return self::$userAgent; }
/** * Get the default User-Agent to add to requests sent through the library * * @return string */ public static function getDefaultUserAgent() { if (!self::$userAgent) { $curl = CurlVersion::getInstance(); self::$userAgent = sprintf('Guzzle/%s curl/%s PHP/%s openssl/%s', Version::VERSION, PHP_VERSION, $curl->get('version'), $curl->get('ssl_version')); } return self::$userAgent; }