Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightweight HTTP(S) request algorithm performing post / get requests (Request in QGIS) #9282

Closed
qgis-bot opened this issue Sep 29, 2024 · 0 comments · Fixed by #9337
Closed
Assignees
Labels
3.40 Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#58681
Author: @signedav
QGIS version: 3.40

** Lightweight HTTP(S) request algorithm performing post / get requests**

PR Description:

Considert inputs from here qgis/QGIS#58464 (comment)

Screenshot from 2024-09-13 13-03-32

Options

  • Optional data can be passed by POST Requests
  • An authentification configuration can be passed optionally
  • The reply data can be written optionally to a file for further use
  • Network errors can be considered as algorithm failure - otherwise it passes and returns the codes

Return values are:

  • STATUS_CODE: The HTTP Status
  • ERROR_CODE: When it fails (like as well on 404 HTTP Status etc.)
  • ERROR_MESSAGE: In case of failure - the error message
  • RESULT_DATA: In case of success - this is a string containing the data
  • OUTPUT: In case of success - The optional output file containing the data

Notes

  • This algorithm supports application/x-www-form-urlencoded requests. Additional feature could be the possibility to add binary data to perform multipart requests but not in this PR
  • There is an option to consider the algorithm as failed on error (means everything except error code 0). Additional feature could be the possibility to choose on what specific error code(s) or HTTP status code(s) it should fail

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.40 label Sep 29, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone Sep 29, 2024
@selmaVH1 selmaVH1 added the Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page. label Oct 14, 2024
@DelazJ DelazJ self-assigned this Oct 30, 2024
@DelazJ DelazJ closed this as completed in e30f8b7 Nov 5, 2024
qgis-bot pushed a commit that referenced this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.40 Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants