title: Post params not able to grab from postman + node js
body: <p>I have the following code in my routes file:</p>
  
  <pre><code>router.post('/submit', function(req, res) {
      var email = req.body.email;
      console.log(email);
  });
  </code></pre>
  
  <p>I am making a post call from postman with following details:
  <a href="http://localhost:3000/login/submit" rel="nofollow noreferrer">http://localhost:3000/login/submit</a></p>
  
  <p>params:</p>
  
  <pre><code>email=abcxyz@gmail.com 
  </code></pre>
  
  <p>and headers i have tried both </p>
  
  <pre><code>Content-Type:application/json 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Content-Type: application/x-www-form-urlencoded
  </code></pre>
  
  <p>Also, I have body parser separately installed with following in app.js</p>
  
  <pre><code>var bodyParser = require('body-parser');
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended: true }));
  </code></pre>
  
  <p>But, The console log for email shows 'undefined'. Why am i not able to grab the post params with req.body.email.</p>