title: Params empty on POST request
body: <p>I am trying to make a POST request sending 2 params using HTTPClient for NodeJS.</p>
  
  <pre><code>var HTTPClient = require('httpclient')
  
  var options = {
      hostname: 'localhost',
      path: '/',
      port: 8081,
      secure: false,
      method: 'POST',
      headers: {
        'x-powered-by': 'HTTPClient.js'
      },
      'Content-Type': 'application/x-www-form-urlencoded',
      params:{
          command:'TEST',
          param1:'TEST'
      }
  } 
  
  var example1 = new HTTPClient(options)
  example1.post('/executeGraph1', function (err, res, body) {
      console.log(typeof body,body);
  })
  </code></pre>
  
  <p>Then I am using Express to catch the POST request</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var path = require('path');
  var bodyParser = require('body-parser');
  
  // configure the app to use bodyParser()
  app.use(bodyParser.urlencoded({
      extended: true
  }));
  app.use(bodyParser.json());
  app.use(express.static(path.join(__dirname, '')));
  
  app.post('/executeGraph1', function (req, res) {
     console.log("Got a POST request for grahBar");
  
     console.log("params",req.params);
     console.log("body",req.body);
     console.log("query",req.query);
  })
  
  var server = app.listen(8081, function () {
  
     var host = server.address().address
     var port = server.address().port
  
     console.log("Example app listening at http://%s:%s", host, port)
  })
  </code></pre>
  
  <p>I have tried solutions in other question like using <code>'Content-Type': 'application/x-www-form-urlencoded'</code> Or <code>app.use(bodyParser.urlencoded({extended: true}));</code> but evrery time I keep getting empty variables. I have tried looking in properties body,params or query but all three options are empty arrays</p>
  
  <p>Does anybody knows what is going wrong here?</p>