When adding WMS layers trough pythonthrough Python plugin/script I run into issue with qgisQGIS stripping of vendor parameters. I found following issue that was closed (https://issues.qgis.org/issues/12255). Proposed solution doesntdoesn't with checking settings in guiGUI "Ignore GetMap/GetTile URI reported in capabilities" is not good for my case, as I am doing it from pythonPython script.
Is there way to activate this setting from pythonPython script. Or is there any other work around?
Also the solution in this post (Non-standard WMS parameters not sent in GetMap requests via QGIS?) is not getting me anywhere, because WMS has to get & not encoded to parse it correctly.