How to execute nodejs request module?
<p>Nodejs request library built on top of http,https. So i try to execute nodejs server from request object, its says not part of request.</p>

<p>So how to execute or call  below code in express ?</p>

<pre><code> var express = require('express');
 var app = express();
 //Load the request module
 var request = require('request');

 //Lets configure and request
 app.request({
     url: 'https://modulus.io/contact/demo', //URL to hit
     qs: {from: 'blog example', time: +new Date()}, //Query string data
     method: 'POST',
     //Lets post the following key/values as form
     json: {
         field1: 'data',
         field2: 'data'
     }
 }, function(error, response, body){
     if(error) {
         console.log(error);
     } else {
         console.log(response.statusCode, body);
     }
 });
 app.listen(8080);
</code></pre>