CefSetting.UserAgent does not work

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

CefSetting.UserAgent does not work

Postby clorest510 » Mon Jul 13, 2015 9:40 am

Hi,
I use
Code: Select all
var settings = new CefSettings
                {
                    // BrowserSubprocessPath = @"D:\fddima\Projects\Xilium\Xilium.CefGlue\CefGlue.Demo\bin\Release\Xilium.CefGlue.Demo.exe",
                    SingleProcess = false,
                    MultiThreadedMessageLoop = true,
                    LogSeverity = CefLogSeverity.Disable,
                    LogFile = "CefGlue.log",
                    Locale = "zh-CN",
                    UserAgent = "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0"
                };


to set UserAgent, But when I access http://www.whatsmyuseragent.com/, the agent is still
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.16 Safari/537.36"

please help, thanks.
clorest510
Newbie
 
Posts: 7
Joined: Sat Jun 20, 2015 4:31 am

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 15 guests