Simple Node.js request HTTPS example

This is a simple example of how to make a https request with the package request¬†for Node.js, the secureOptions and rejectUnauthorized are optionals and depend on the endpoint you are requesting. On secureOptions you can specify the method and I only recommend rejectUnauthorized for endpoints you really trust because it will ignore certificate checks. You can also remove the .pipe on the request if you don’t want to download the image.

Even more simple: