olofd / 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

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7422049/

Original comment by pele...@google.com on 4 Mar 2013 at 8:57