Http Get
Perform an HTTP GET request.
Description
Sends an HTTP GET request to the specified URL and provide the results.
The HTTP GET method requests a representation of the specified resource. Requests using GET should only retrieve data.
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
- Control Flow (Control Flow)
- url (String): The URL to query.
- headers (Object): Optional HTTP headers in a JSON object or a JSON parsable string.
Outputs
- Control Flow (Control Flow)
- body (String): The body (i.e. the content) of the response.
- status code (Number): The response status code.
- headers (String): The response headers.
- Error Flow (Error Flow): Triggered if an error occurs.