cURL

The cURL block is used to transfer data to and from a server by running a restricted client URL (cURL) command. You can use this block to communicate with a server by specifying its URL and the data to be sent. You can also call workflow endpoints from a remote system and receive detailed information on both sent and received data, which is beneficial for debugging purposes.

Procedure

  1. Drag and drop the cURL block on your chosen location in the workflow.
  2. Specify your command in the only field of the cURL block.

    The cURL command starts with an HTTP method, such as GET, followed by the URL from which you want to retrieve the data. You can optionally assign the result of the cURL block to the $result variable by using an Assign block. For more information, see Assign.

  3. Click Run to apply the changes.

Supported items

The cURL block supports only the following items:
  • Headers
  • Query strings
  • Body parameters
  • Authentication
  • Form-data
  • Insecure flags
    Note: Any parameters outside of this range are disregarded.

Disabling cURL block

To temporarily disable the cURL block without deletion, turn off the switch in the block header.