Skip to content
Product Documentation

Making HTTP Requests with Node.js

Libraries

In order to make HTTP requests to other Arc XP services or third parties, you must use a library. There are many options available, but for our purposes we prefer and use Axios. Axios is a Promise-based HTTP client for the browser and Node.js.

You must install Axios and include it as a dependency. You can find an example of how to use it at https://axios-http.com/docs/example.

Promises

Writing asynchronous code can get confusing. Using Promises is a great advantage when dealing with code that requires a more complicated chain of events. See Async/Await: The Hero JavaScript Deserved.

More Information

5 Ways to Make HTTP Requests in Node.js

Help us improve our documentation! Let us know if you do not find what you are looking for by posting suggestions to Our Ideas Portal.