Project: QGIS

Version: 3.24

Feature: Form submit actions with HTTP POST

In QGIS 3.24 we added two new HTTP POST actions, similar to the existing Open action which uses an HTTP GET request.

The two actions differ in the way the form data are encoded:

  1. application/x-www-form-urlencoded
  2. multipart/form-data

In both cases, data are passed to the action in a URL encoded URL.

A new function url_encode(<map>) is provided to convert a dictionary (a map) to the encoded format.

The response from the submitted URL is opened by delegating to the operating system QDesktopServices::openUrl() after the payload has been stored in a temporary file.

This feature was funded by Kanton Solothurn

This feature was developed by Alessandro Pasotti