Get the useragent
Posted: Fri Mar 08, 2024 7:38 am
Dear,
How do I get the useragent version of cef?
I tried the code below, but it returns empty.
I later checked the existence of the function
But it returns a different string than what the browser detects.
Detected
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
GetDefaultCEFUserAgent
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.69 Safari/537.36
How do I get the useragent version of cef?
I tried the code below, but it returns empty.
Code: Select all
GlobalCEFApp.UserAgent
GlobalCEFApp.UserAgentProduct
Code: Select all
GetDefaultCEFUserAgent
Detected
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
GetDefaultCEFUserAgent
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.69 Safari/537.36