Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
excludeRelated Articles

Inputs

The http request node is used for making API Requests and receiving the corresponding Responses.

You can also use the http request node for sending and receiving JSON data to a website or API.

...

The http request node supports four Methods:

...

Note

When using -set by msg.method option in the HTTP http request node, leave the URL field empty.

...

Use basic authentication - Enable this option to give the authentication if the website/API requires authentication to continue.

...

  • UTF-8 string - Standard webpage format

  • Binary buffer - Binary data

  • parsed JSON object - Common response from the APIs. The node will convert JSON data into a JavaScript object.

Name - Display name for the node.

Http Headers

If you want to pass the Http headers for the API/website, you have to set the request headers in any previous node and pass it to the http request node.

Use the below sample code in a function node to set the headers.

Code Block
msg.header = {};
msg.headers.['content-type'] = 'application/json';
return msg;

Output

The output from the http request node usually contains the payload, statusCode, headers, and responseUrl.

Sample response captured in the debug node.

...

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel = "experience-manager"