ravipatidar54 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

User Agent should contain the clr version #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Today there is no indication which .NET framework our users use.
As a result UserAgent header should contain the clr version.

We should add on the Request class something similar to the following:
private const string UserAgent = "{0} google-api-dotnet-client/{1}/{2} {3}/{4}";
httpRequest.UserAgent = String.Format(UserAgent, ApplicationName, ApiVersion, 
clrVersion, osPlatform, osVersion);

Original issue reported on code.google.com by pele...@google.com on 1 Mar 2013 at 2:31