What I am trying to do is to translate this curl
command into Node.js code
curl -X PUT -H "Content-Type:" --data-binary @slug.tgz "https://s3-external-1.amazonaws.com/herokuslugs/heroku.com/v1/xyz"
I have been fiddling with Node's built-in https.request
and the request lib for more than a hour and still haven't figured that out.