title: How to pass text/plain content in axios POST request in nodejs
body: <p>I want to pass body parameters as shown in screen shot <a href="https://i.stack.imgur.com/wwBjV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wwBjV.png" alt="here"></a> (<strong>in text/plain format</strong>)</p>
  
  <p>I am using axios in my nodejs/express project . My reqeust format is as shown below:</p>
  
  <pre><code>var config = {
      headers: {
          'Content-Length': 0,
          'Content-Type': 'text/plain'
      }
  };
  
  
  
  const testInput = (req, res) =&gt; {
      axios.post('https://api.sandbox.xyz.com/v1/order/new', { firstName: 'Marlon' }, config)
          .then(function(response) {
              console.log('saved successfully')
          })
          .catch(function(error) {
              console.log(error);
          });
  };
  </code></pre>
  
  <p>For this how can I pass the body parameters appropriately?</p>