title: How to make an https version of a Unirest example
body: <p>I would like to use the https library in node.js to send a request to this api:
  <a href="https://rapidapi.com/dimas/api/NasaAPI?endpoint=apiendpoint_b4e69440-f966-11e7-809f-87f99bda0814getPictureOfTheDay" rel="nofollow noreferrer">https://rapidapi.com/dimas/api/NasaAPI?endpoint=apiendpoint_b4e69440-f966-11e7-809f-87f99bda0814getPictureOfTheDay</a></p>
  
  <p>The given example on the RapidAPI website uses Unirest, and I would like to only use the https library. I've tried to write it like this:</p>
  
  <pre><code>const https = require('https');
  
  var link = "https://NasaAPIdimasV1.p.rapidapi.com/getPictureOfTheDay";
  var options = {host: "https://NasaAPIdimasV1.p.rapidapi.com/getPictureOfTheDay",
  path: "/", headers: {"X-RapidAPI-Key": "---MY KEY(Yes, I've replaced it)---", "Content-Type": "application/x-www-form-urlencoded"}}
  
  https.get(link, options, (resp) =&gt; {
      let data = '';
      resp.on('data', (chunk) =&gt; {
          data += chunk;
      });
      resp.on('end', () =&gt; {
          console.log(data);
      });
  }).on("error", (err) =&gt; {
      console.log("https error 4: " + err.message);
  });
  </code></pre>
  
  <p>But that returns the following response:</p>
  
  <pre><code>{"message":"Endpoint\/ does not exist"}
  </code></pre>
  
  <p>Thanks for any help</p>