title: HTTP Request doesn’t include query
body: <p>I am trying to send a POST request with query parameters using the request library. I have succeded in sending these requests, but I am still unable to include any working query.</p>
  
  <p>I have followed instructions from other posts and concluded that I’ve tried everything on the internet that is related to my mission.</p>
  
  <p>This is the code that does comply with what I found on the internet:</p>
  
  <pre><code>const request = require(’request’);
  
  request.post({
      url: 'https://example.com/endpoint',
      qs: { with_counts: true } },
      function (err, res, body) {
          console.log(err, body);
      }
  );
  </code></pre>
  
  <p>This, however, does not work. The server does not recieve the query. I tried setting the <code>body</code> and <code>json</code> properties instead, but those didn’t work either.</p>
  
  <p>I cant tell what I’m doing wrong, and I realize that it might not be possible for you to tell, but this is my last desperate attempt before giving up and switching to Python.</p>