title: How can i get the post data in Node.js?
body: <p>Server1.js</p>
  
  <pre><code>var data = querystring.stringify({
      imageName: reqImgName
    });
  
  var options = {
                host: 'localhost',
                port: 4321,
                path: '/image',
                method: 'POST',
                headers: {
                      'Content-Type': 'application/x-www-form-urlencoded',
                      'Content-Length': data.length
                  }
              };
  </code></pre>
  
  <p>server2.js</p>
  
  <pre><code>http.createServer(function(req, res){
    var reqMethod=req.method;
    var request = url.parse(req.url, true);
    var pathName = request.pathname;
    console.log('Path name is '+pathName);
    if (reqMethod=='POST' &amp;&amp; pathName == '/image') {
  
     //here i need my server1 data..how can i get here.
     } 
  
  }).listen(4321);
  </code></pre>