User-Agent
From World Wind Wiki
(Difference between revisions)
Revision as of 02:50, 17 February 2005 (edit) Jessi (Talk | contribs) ← Previous diff |
Current revision (03:01, 17 February 2005) (edit) (undo) Jessi (Talk | contribs) |
||
(7 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
Current World Wind user agent: | Current World Wind user agent: | ||
- | World Wind v1.2.1873.34143 (Microsoft Windows NT 5.1.2600.0, en-US) | + | *World Wind v1.2.1873.34143 (Microsoft Windows NT 5.1.2600.0, en-US) |
Mozilla user agent: | Mozilla user agent: | ||
- | Mozilla/5.001 (windows; U; NT4.0; en-us) Gecko/25250101 | + | *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: | Current Code: | ||
- | WebDownload\WebDownload.cs, WebDownload:IDisposable | + | WebDownload\WebDownload.cs(44), WebDownload:IDisposable |
static readonly string UserAgent = String.Format("World Wind v{0} ({1}, {2})", | static readonly string UserAgent = String.Format("World Wind v{0} ({1}, {2})", | ||
Line 17: | Line 22: | ||
What do we need in a user-agent string? | What do we need in a user-agent string? | ||
- | # World Wind | + | * World Wind |
- | # WW version number | + | * WW version number |
- | # Windows version | + | * Windows version |
- | # .NET version | + | * .NET version |
- | # Locale | + | * Locale |
+ | |||
+ | Documents: | ||
+ | |||
+ | * [http://www.faqs.org/rfcs/rfc1945.html RFC 1945] | ||
+ | * [http://www.faqs.org/rfcs/rfc2068.html RFC 2068] | ||
+ | * http://www.mozilla.org/build/revised-user-agent-strings.html | ||
+ | * http://www.mozilla.org/build/user-agent-strings.html | ||
+ | |||
+ | ---- | ||
+ | Environment.Version.ToString() gets the .NET version | ||
+ | |||
+ | [[Category:Dev]] |
Current revision
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:
- RFC 1945
- RFC 2068
- http://www.mozilla.org/build/revised-user-agent-strings.html
- http://www.mozilla.org/build/user-agent-strings.html
Environment.Version.ToString() gets the .NET version