WEB plugin for ExtensiveAutomation server
This plugin enable to interact with remote web server through the HTTP protocol.
This plugin is based on the curl command.
Table of contents
Installing from pypi
-
Run the following command
pip install extensiveautomation_plugin_web -
Execute the following command to take in account this new plugin
./extensiveautomation --reload -
Samples are deployed on data storage
Installing from source
-
Clone the following repository
git clone https://github.com/ExtensiveAutomation/extensiveautomation-plugin-web.git cd extensiveautomation-plugin-web/src/ea/ -
Copy the folder
sutadaptersin the source code server and overwrite-itcp -rf sutadapters/ /<install_path_project>/src/ea/ -
Copy the folder
varin the source code server and overwrite-itcp -rf var/ /<install_path_project>/src/ea/ -
Finally execute the following command to install depandencies
cd /<install_path_project>/src/ python3 extensiveautomation.py --install-adapter WEB python3 extensiveautomation.py --reload
About actions
http/curl.yml
Send http requests and analysing responses.
Parameter(s):
-
agent (text): agent name
-
curl-body (text): http request body
-
curl-headers (text): additional headers for the request
-
curl-hosts (text): remote address
-
curl-proxy (text): proxy url
-
curl-method (text): http method
-
curl-options (text): additional options for curl
-
response-body-json (dict): expected json in http response with jsonpath expression
-
response-body-text (text): expected string in http response
-
response-body-xml (text): expected xml in http response with xpath expression
-
response-body-xmlns (text): namespaces
-
response-code (integer): reponse code expected
-
response-headers (text): list of expected headers in response
-
response-phrase (text): response phrase expected
-
response-version (text): http version expected in response
About workflows
http/httpbin.yml
This worflow show how to use the curl action and
how to extract value from json response.
- Reuse curl action
- description: Get my origin IP
file: Common:actions/http/curl.yml
- Configure parameters
- name: curl-hosts
value: https://httpbin.org/ip
- name: response-body-json
value: |
origin -> [!CAPTURE:externalip:]
http/jsonplaceholder.yml
This worflow show how to use the curl action and POST json data.
- name: curl-hosts
value: https://jsonplaceholder.typicode.com/posts
- name: curl-method
value: POST
- name: curl-headers
value: |
Content-Type: application/json
- name: curl-body
value:
title: un exemple en français
body: bonjour
userId: 1
Metadata
Release files for extensiveautomation-plugin-web 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| extensiveautomation_plugin_web-1.4.0.tar.gz | 15.2 kB | Without provenance | Details for extensiveautomation_plugin_web-1.4.0.tar.gz |
Release files / extensiveautomation_plugin_web-1.4.0.tar.gz
| Download URL | extensiveautomation_plugin_web-1.4.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f36fa8cd8c732bfb032f6306bfa0e2b4b3defe5ec47bff5d60961c49665cbf62
|
|
BLAKE2b-256 checksum How to use checksums |
c1fca61484059f4410b8ab501a82142b4ee5373daae982b5ca36e1a82a1255f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for extensiveautomation-plugin-web 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.