* * *

Author Topic: fpCef3 - changing user agent string  (Read 928 times)


  • Jr. Member
  • **
  • Posts: 69
fpCef3 - changing user agent string
« on: February 07, 2017, 12:52:04 pm »
I can set user agent while initializing application but I rather do that on the fly, without restart.

Stackoverflow says It should be possible to manipulate request header in OnBeforeResourcesLoad like that:

    CefRequest::HeaderMap hdrMap;

    hdrMap.insert(std::make_pair("Test", "test"));
    return false;

How to create this HeaderMap object?
dCef3 port has something like this:   headerMap := TCefStringMultiMapOwn.Create;
which I can't find in fpCef3, is it missing from the port or is named differently?



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus