Hi Guys, I need get in runtime default useragent. Existe some way to get from GlobalCEFApp?
Thanks
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Get default useragent
- salvadordf
- Posts: 4572
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get default useragent
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.
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.
- salvadordf
- Posts: 4572
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Get default useragent
Please, download the latest CEF4Delphi version from GitHub and use the new GetDefaultCEFUserAgent function found in the uCEFMiscFunctions unit.