title: How to read Content-Type: application/octet-stream request in node.js
body: <p>I have sent the following request from post man to node.js:</p>
  
  <pre><code>curl -X PUT -H "Content-Type: application/octet-stream" -H "app_key: dhdw-sdsjdbsd-dsdv-ddd" -H "Authorization: Login jddjd-ddd-ddd-ddd-ddd" -H "Cache-Control: no-cache" -H "Postman-Token: dbee5942-5d54-c1b7-415c-7ddf9cb88cd0" -d 'Code,Name,Parent,Address
  
  root,root,,root
  root1,root1,root,root1
  root2,root2,root1,root2
  root3,root3,root2,root3
  root4,root4,root,root4
  root5,root5,root4,root5
  root6,root6,root,root6
  ' http://localhost:9000/api/locations/import
  </code></pre>
  
  <p>How can I process the above request from node.js and read the request data?</p>
  
  <p>The above request hit my router:</p>
  
  <pre><code>app.put('api/locations/import', function(req,res){
    'use strict';
    console.log(req.body);
    console.log(req.body.hello);
    res.send(200);
  });
  </code></pre>
  
  <p>I am always getting <code>req.body</code> is <code>{}</code>. But I am expecting:</p>
  
  <pre>
  root,root,,root
  root1,root1,root,root1
  root2,root2,root1,root2
  root3,root3,root2,root3
  root4,root4,root,root4
  root5,root5,root4,root5
  root6,root6,root,root6
  </pre>