Page 1 of 1

Get default useragent

Posted: Wed Jan 08, 2020 2:33 pm
by alpires2000
Hi Guys, I need get in runtime default useragent. Existe some way to get from GlobalCEFApp?
Thanks

Re: Get default useragent

Posted: Wed Jan 08, 2020 5:57 pm
by salvadordf
Hi,

The CEF API doesn't have any function to get the default user agent string but you can get it by loading this URL in any demo :
https://www.whatismybrowser.com/detect/ ... user-agent

I'll add a custom function to generate it based on the DLL's version in the next update.

Re: Get default useragent

Posted: Mon Jan 13, 2020 3:05 pm
by salvadordf
Please, download the latest CEF4Delphi version from GitHub and use the new GetDefaultCEFUserAgent function found in the uCEFMiscFunctions unit.