Setting up the HTTP Request action

Learn how to make an HTTP request, add the HTTP Request action to your canvas and configure it.

Procedure

  1. Select HTTP method: Select the HTTP method according to the action you want to perform on the resource identified. Available methods are GET, POST, PUT, and DELETE. By default, the value for this field is set to GET.
  2. URL (Mandatory): Enter the URL to which you want to make the HTTP request.
    The next block lets you add Headers, Parameters, and Basic Auth. To do this, click the "+" icon given beside the respective field names.
    • URL Params (Optional): Enter the URL parameter details.

    • Key (Mandatory): Enter any parameters that you want to send to the server along with the URL.

    • Value (Mandatory): Enter the value for the specified parameter.

  3. You can send values for multiple URL parameters by clicking the "+" link.
    • Basic Auth (Optional): Enter the basic authentication details.

    • Username: Enter the username.

    • Password: Enter the password for the specified username.

    • Headers (Optional): Enter any additional information that you want to send to the server along with the URL.

    • Key: Enter the name of the key for which you want to send a value.

    • Value (Mandatory): Enter the value for the specified key.

  4. You can send values for multiple headers by clicking the "+" link.
    • Timeout (Optional): Enter the number of seconds for which you want to wait for the server to send response headers.

    • Decode GZIP Response (Mandatory): Specify whether you want to decode the GZIP response. Available options are True and False. By default, the value for this field is set to False.

    • Response Encoding (Mandatory): Select the encoding type that you want to apply on the file. Available options are UTF-8, buffer, binary, hex, ASCII, and Base64.

    • Reject Unauthorized (Mandatory): Specify whether you want to allow/disallow the URLs with invalid certificates. By default, the value for this field is set to True.

    • Follow Redirect (Mandatory): Specify whether you want to follow the HTTP 3xx responses for the specified URL. By default, the value for this field is set to True.

    • Follow All Redirects (Mandatory): Specify whether you want to follow all HTTP 3xx responses to multiple sites for the specified URL.

  5. Once you have entered the details, click Next, test the action, and click Done. Then, run the workflow. This makes the HTTP request to the specified URL.
    Note: While testing an HTTP Request action, if it invokes any workflow synchronously or asynchronously, then the transaction is counted for the child workflow execution.