Node.js External HTTP Call

Write a node.js program for making external http calls.


It is often necessary for a network application to make external HTTP calls. HTTP servers are also often called upon to perform HTTP services for clients making requests. Node provides an easy interface for making external HTTP calls. For example, the following code will fetch the front page of

var http = require('http');
host: '',
method: 'GET',
path: "/"
}, function(response) {
response.on("readable", function() {

Read more articles

General Knowledge

Learn Popular Language