User-Agent

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:50, 17 February 2005 (edit)
Jessi (Talk | contribs)

← Previous diff
Revision as of 02:50, 17 February 2005 (edit) (undo)
Jessi (Talk | contribs)

Next diff →
Line 12: Line 12:
static readonly string UserAgent = String.Format("World Wind v{0} ({1}, {2})", static readonly string UserAgent = String.Format("World Wind v{0} ({1}, {2})",
- System.Windows.Forms.Application.ProductVersion,+ System.Windows.Forms.Application.ProductVersion,
- Environment.OSVersion.ToString(),+ Environment.OSVersion.ToString(),
- System.Globalization.CultureInfo.CurrentCulture.Name);+ System.Globalization.CultureInfo.CurrentCulture.Name);
What do we need in a user-agent string? What do we need in a user-agent string?

Revision as of 02:50, 17 February 2005

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

Current Code:

WebDownload\WebDownload.cs, 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?

  1. World Wind
  2. WW version number
  3. Windows version
  4. .NET version
  5. Locale
Personal tools