Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }