Skip to content

👓 Get default browser user agent in C#

License

Notifications You must be signed in to change notification settings

csharpHub/GetUserAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

👓 GetUserAgent

Get default browser user agent in C#

🔨 Usage:

static void Main(string[] args)
{
    string browser = GetDefaultBrowser();
    string location = GetBrowserLocation(browser);
    string version = GetBrowserVersion(location);
    string useragent = GetUserAgent(browser);

    Console.WriteLine("Browser : " + browser);
    Console.WriteLine("Location : " + location);
    Console.WriteLine("Version : " + version);
    Console.WriteLine("User-Agent : " + useragent);

    Console.ReadLine();
}

About

👓 Get default browser user agent in C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages