Hi.
I'm using CEF to embed a browser pane inside a wxWidgets app, replacing an IEHtmlWin ActiveX component. I've managed to get most of the functionality that IE was used for set up and working within CEF and I have really enjoyed using this component.
One of the last things that I need to get working is to modify the user agent to add the name of the app onto the end of the user agent string.
I thought that I would be able to do this in the Request Object before a navigation is made via the HandleBeforeBrowse method of the handler but I've not found a way to make this change within the request object.
I'm sure that there is something simple that I am overlooking but any pointers in the correct direction to modify the User Agent string would be very much appreciated. Ideally I would like to modify the string from :
Mozilla/5.0 (Windows; U; Windows NT 5.1;en-US) AppleWebKit/530.10 (KHTML, like Gecko)/1, 0, 0, 1 Safari/530.10
to:
Mozilla/5.0 (Windows; U; Windows NT 5.1;en-US) AppleWebKit/530.10 (KHTML, like Gecko)/1, 0, 0, 1 Safari/530.10 (MyApplicationName)
Any suggestions will be very much appreciated.
Many thanks in advance,
Martin McCarry