title: Post to an https rest endpoint using node.js
body: <p>I have a requirement, a Post request will be sent to Node.js and it has to be sent to a https rest endpoint with the same request body and return the response. I have tried using Http, node-rest-client npms. Those all seem to work for a http post request but not with https. Any help with code will be great.</p>
  
  <p>Thanks in advance.</p>