Http Post
Perform an HTTP POST request.
Description
Sends an HTTP POST request to the specified URL and provide the results.
The HTTP POST method sends data to the server. The type of the body of the request is indicated by the Content-Type
header.
The difference between PUT and POST is that PUT is idempotent: calling it once or several times successively has the
same effect (that is no side effect), where successive identical POST may have additional effects, like passing an
order several times.
Additional headers can be provided and returned in a string that has to be in JSON format.
Example: '{"Content-Type": "text/html; charset=UTF-8", "Content-Length": 1024 }'
The returned body is formatted depending on the mimeType received in the headers : as an UTF-8 string for common text content (text/html, application/json, ...), and as a base64 string for all other contents.
Inputs
- url (String): The URL to query.
- headers (Object): Optional HTTP headers in a JSON object or a JSON parsable string.
- body (String): The body of the request. The body must be a JSON parsable string.
Outputs
- status code (Number): The response status code.
- body (String): The body (i.e. the content) of the response.
- headers (String): The response headers.
- Error Flow (Error Flow): Triggered if an error occurs.