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

Post Reply
alpires2000
Posts: 48
Joined: Sat Dec 09, 2017 4:40 pm

Get default useragent

Post by alpires2000 »

Hi Guys, I need get in runtime default useragent. Existe some way to get from GlobalCEFApp?
Thanks
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get default useragent

Post 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.
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get default useragent

Post by salvadordf »

Please, download the latest CEF4Delphi version from GitHub and use the new GetDefaultCEFUserAgent function found in the uCEFMiscFunctions unit.
Post Reply