Http Client

Perform an HTTP request to a specified endpoint

When to use?

When you want to access data from a web service endpoint

How to use:

  1. In the RESULT NAME field enter the name the result will be stored as
  2. In the ENDPOINT URL field enter the URL you wish to send request to
  3. In the CONTENT TYPE drop-down enter the content type you're expecting to get in the headers
  4. In the HTTP METHOD drop-down choose between GET or POST methods
  5. In the TIMEOUT field enter how long should a request wait for a response in milliseconds
  6. In the HEADERS field you can add HTTP headers, and in the PARAMETERS field you can add parameters to be sent with the request
  7. You can also send JSON format Request Body in the POST request
  8. The element contains two flows to be executed, depending on the request success: OK and NOK
  9. You can access the result body in the OK flow like this: ${resultName.body.valueYouWantToAccess}
  10. To access the response status code and error messages use this syntax: ${resultName.status}

Example of usage

Accessing horoscope API endpoint and outputting horoscope data: