HTTP Request

This action lets you make a HTTP request to your server. To do this, add this action to your canvas and configure it.

Field data

Set HTTP method (Mandatory): Select the HTTP method according to the action you wish 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'. 

URL (Mandatory): Enter the URL to which you wish to make the HTTP request.

The next block lets you add 'Headers', 'Parameters', and 'Basic Auth'. To do this, click on the '+' icon given beside respective field names. 

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

   Header (Mandatory): Enter the name of the key for which you wish to send a value.    

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

    You can send values for multiple headers by clicking on the ‘+’ link. 

Params (Optional): Enter the URL parameter details. 

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

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

    You can send values for multiple URL parameters by clicking on the ‘+’ link. 

Basic Auth (Optional): Enter the basic authentication details. 

   Username: Enter the username.

    Password: Enter the password for specified username. 

Timeout (Optional): Enter the number of seconds for which you wish to wait for server to send response headers. 

Decode GZIP Response (Mandatory): Specify if you wish 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 wish to apply on the file. Available options are utf8, buffer, binary, hex, ascii, and base64. 

Reject Unauthorized (Mandatory): Specify if you wish to allow/disallow the URLs with invalid certificates. By default the value for this field is set to 'True'.

Follow Redirect (Mandatory): Specify if you wish 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 if you wish to follow all HTTP 3xx responses to multiple sites for the specified URL.

http.png

Once you have entered the details, click on 'Done' and 'Run' the workflow. This will make the HTTP request to the specified URL.

Understand how to upload a file using HTTP POST method here

Output:
  • output-arrow http HTTP Request
    • left-triangle text string
    • left-triangle headers object
    • left-triangle status number