title: Node.js http request returning body/msg empty
body: <p>I am trying to use the requestjs package to post data and wait for a response. But I the body response is always undefined.</p>
  <pre><code>var request = require('request');
  
  request({
        method: &quot;POST&quot;,
        baseUrl: &quot;https://255.255.255&quot;,
        uri: &quot;/login&quot;,
  form: { 
        username: &quot;username&quot;,
        password: &quot;password&quot;,
        autologin: &quot;true&quot;}},
  function(body, msg, err){ 
        console.log(body); console.log(msg); 
  })
  </code></pre>
  <p>Edit: Again, the undefined body was caused by a privacy policy.</p>