HTTP request
Configuration for HTTP request.
- Code:
httpreq - Since: v2.0.0
Here is an example bash command using the HTTP request provider:
Credentials
| Environment Variable Name | Description |
|---|---|
HTTPREQ_ENDPOINT |
The URL of the server |
HTTPREQ_MODE |
RAW, none |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information here.
Additional Configuration
| Environment Variable Name | Description |
|---|---|
HTTPREQ_HTTP_TIMEOUT |
API request timeout in seconds (Default: 30) |
HTTPREQ_PASSWORD |
Basic authentication password |
HTTPREQ_POLLING_INTERVAL |
Time between DNS propagation check in seconds (Default: 2) |
HTTPREQ_PROPAGATION_TIMEOUT |
Maximum waiting time for DNS propagation in seconds (Default: 60) |
HTTPREQ_USERNAME |
Basic authentication username |
The environment variable names can be suffixed by _FILE to reference a file instead of a value.
More information here.
Description
The server must provide:
POST/presentPOST/cleanup
The URL of the server must be defined by HTTPREQ_ENDPOINT.
Mode
There are 2 modes (HTTPREQ_MODE):
- default mode:
RAW
Authentication
Basic authentication (optional) can be set with some environment variables:
HTTPREQ_USERNAMEandHTTPREQ_PASSWORD- both values must be set, otherwise basic authentication is not defined.