Get default useragent

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

Get default useragent

Post by alpires2000 » Wed Jan 08, 2020 2:33 pm

Hi Guys, I need get in runtime default useragent. Existe some way to get from GlobalCEFApp?
Thanks

User avatar
salvadordf
Posts: 2068
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get default useragent

Post by salvadordf » Wed Jan 08, 2020 5:57 pm

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/what-is-my-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: 2068
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Get default useragent

Post by salvadordf » Mon Jan 13, 2020 3:05 pm

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

Post Reply