3liz / qgis-plugin-manager

CLI tools for installing QGIS Plugins
GNU General Public License v3.0
12 stars 2 forks source link

User-Agent: Move from `Mozilla/5.0` to `Mozilla/5.0 QGIS/<version>/<os-info>` #66

Closed benz0li closed 2 months ago

benz0li commented 2 months ago

Due to https://lists.osgeo.org/pipermail/qgis-user/2024-May/054439.html.

Cross references:

benz0li commented 2 months ago

See also https://github.com/qgis/QGIS/issues/57428.

benz0li commented 2 months ago

QGIS User-Agent: https://github.com/qgis/QGIS/blob/e185b6b605fc3082b6dd999278568db19c48072a/src/core/network/qgsnetworkaccessmanager.cpp#L303-L307

benz0li commented 2 months ago

Ping @Gustry

Gustry commented 2 months ago

According to QGIS Desktop, it's following this format :

User-Agent: Mozilla/5.0 QGIS/33406/Ubuntu 22.04.4 LTS

Gustry commented 2 months ago

Ah sorry, thanks for the link :

userAgent += QStringLiteral( "QGIS/%1/%2" ).arg( Qgis::versionInt() ).arg( QSysInfo::prettyProductName() );