title: Make an ajax call from nodejs server side
body: <p><strong>Skip this part, it's me rambling:</strong>
  <a href="https://stackoverflow.com/questions/32938344/proper-way-to-implement-ajax-request-server-side-in-node-js">Not duplicate</a> as it didn't solve my problem and he is trying to make an ajax call as a query search.</p>
  
  <p>Not a duplicate of  <a href="https://stackoverflow.com/q/7967037/10238810">How to make external HTTP requests with Node.js</a> - I am not asking how to make an external http request but an ajax call.</p>
  
  <p><strong><em>No,</strong> I can <strong>not</strong> just use request, I don't want to get into why but ajax is the only method that'll work. I have already tested it on the client side, I just have to figure out how to implement it on the server side.</em></p>
  
  <hr>
  
  <p><strong>ACTUAL QUESTION</strong></p>
  
  <pre><code>$.ajax({
       url: "https://example/api/card/",
       dataType: "JSONP",
       type: "GET",
       jsonpCallback: "callback",
       data: {
           id: var1,
           scid: var2,
           cid: var34
       },
       success: function() { console.log("res", res) }
  });
  </code></pre>
  
  <p>I need to somehow make the above ajax call from the server side of my nodejs application.</p>
  
  <hr>
  
  <p>I <strong>HAVE</strong> to use ajax as the api I am sending it to only accepts a specific kind of request that I am trying to mimic. </p>