a basic example for http client:
write the follwing code in http_client.js file:
var http = require('http');
var options = {
  hostname: '127.0.0.1',
  port: 80,
  path: '/',
  method: 'GET'
};
var req = http.request(options, function(res) {
    console.log('STATUS: ' + res.statusCode)...