Welcome, Guest

Author Topic: How to change the User Agent string  (Read 1668 times)

John

  • Coherent Labs support
  • Administrator
  • *****
  • Posts: 205
    • View Profile
How to change the User Agent string
« on: August 24, 2015, 04:22:04 AM »
To set a custom user agent string you would need first set the the UserAgent property to UAT_Custom and then set your own string using the CustomUserAgentString. Both CustomUserAgentString and UserAgent are properties of the view context.

Below is a sample code snippet that you can add around line 563 in CoherentUISystem.cs under ContextSettings:

Code: [Select]
UserAgent = UserAgentType.UAT_Custom,
CustomUserAgentString = "your user agent string",
If you like you can use the following site to test your user agent - http://whatsmyuseragent.com/

Tags: