[QGIS-Developer] QgsBlockingNetworkRequest and PATCH method (Python)

Nyall Dawson nyall.dawson at gmail.com
Sun Feb 6 14:22:45 PST 2022


On Tue, 1 Feb 2022 at 18:10, Julien Cabieces
<julien.cabieces at oslandia.com> wrote:

> I think one good solution is to use the request python framework (https://3.python-requests.org/)

(for wider reference in case anyone comes across this thread in search
results:)

In general, it's better NOT to use requests and stick with the native
PyQGIS network API instead. There's a number of reasons why using
requests for QGIS plugin is discouraged:

- It doesn't respect QGIS network settings, like the proxy settings
- It doesn't use the standard QGIS handling of authentication and
dealing with things like SSL errors
- Requests aren't logged via the Network Logger panel

Nyall


>
>
> Regards,
> Julien
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list