title: node.js axios request with cookies
body: <p>so i have browser(netscape?) cookie like that <a href="https://i.stack.imgur.com/3Nbry.png" rel="nofollow noreferrer">nscookie</a>
  or JSON cookie like <a href="https://i.stack.imgur.com/xH1yR.png" rel="nofollow noreferrer">jsoncookie</a></p>
  <p>How should i pass this into <a href="https://i.stack.imgur.com/D5i5y.png" rel="nofollow noreferrer">request</a>?</p>
  <p>code source:</p>
  <pre><code>const
      fs = require('fs'),
      https = require('https'),
      axios = require('axios');
  
  function reqTest()
  {
  
      axios.default.request({
          'url': 'google.com',
          'method': 'post',
          'headers':
              {
                  'Cookie': 'cookie1=?; cookie2=?;'
              }
      }
      ).then(res =&gt; {
          console.log(res);
      })
  }
  </code></pre>