This tutorial explains how you can make an HTTP request for a text, json, or binary image file from NodeJS. A demonstration is made that shows how to fetch a json file from an API which is returned to the node script. Another demo is made to fetch a binary image which is saved to the local server.
The practical application of this is being able to find and return resources from your Node web server that are not located on your server.
Code GIST: https://gist.github.com/prof3ssorSt3v...
On this page of the site you can watch the video online Making HTTP Requests from NodeJS with a duration of hours minute second in good quality, which was uploaded by the user Steve Griffith - Prof3ssorSt3v3 07 October 2019, share the link with friends and acquaintances, this video has already been watched 54,758 times on youtube and it was liked by 682 viewers. Enjoy your viewing!