[QGIS-Developer] HTTP POST multipart/form-data using PyQGIS

Julien Cabieces julien.cabieces at oslandia.com
Tue Sep 12 07:18:09 PDT 2023


Hi

You can use QgsNetworkAccessManager::blockingPost that take an
authentication id and will use the proxy settings configured in QGIS.

If you want to make it non blocking, you can add it to a QgsTask and
execute it with QgsTaskManager.

Regards,
Julien

> Hello,
>
> I'm working on a QGIS plugin to upload images to an instance (STAC)
> via a REST API.
>
> I've found some examples
> (https://lists.osgeo.org/pipermail/qgis-developer/2022-January/064437.html)
> but they don't use the PyQGIS API, whereas I need support for
> authentication configurations and proxy settings.
>
> Is this currently possible?
>
>
> Regards,
> julien
>
> [2. text/vcard; julien_moura.vcf]...
>
> _______________________________________________
> 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


-- 

Julien Cabieces
Senior Developer at Oslandia
julien.cabieces at oslandia.com
09.72.52.52.76


More information about the QGIS-Developer mailing list