User-Agent

From World Wind Wiki

Jump to: navigation, search

Current World Wind user agent:

  • World Wind v1.2.1873.34143 (Microsoft Windows NT 5.1.2600.0, en-US)

Mozilla user agent:

  • Mozilla/5.001 (windows; U; NT4.0; en-us) Gecko/25250101
  • Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

IE user agent:

  • Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)

Current Code:

WebDownload\WebDownload.cs(44), WebDownload:IDisposable

  static readonly string UserAgent = String.Format("World Wind v{0} ({1}, {2})",
  System.Windows.Forms.Application.ProductVersion,
  Environment.OSVersion.ToString(),
  System.Globalization.CultureInfo.CurrentCulture.Name);

What do we need in a user-agent string?

  • World Wind
  • WW version number
  • Windows version
  • .NET version
  • Locale

Documents:


Environment.Version.ToString() gets the .NET version

Personal tools