Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save keremtiryaki/17db046e4b14052b8805ce14a4c39e19 to your computer and use it in GitHub Desktop.
Save keremtiryaki/17db046e4b14052b8805ce14a4c39e19 to your computer and use it in GitHub Desktop.
var options = {
'method': 'POST',
'hostname': "apipipi.now.sh",
'path': "/api/enpoint1",
'headers': {
'Content-Type': 'application/json'
},
'maxRedirects': 20
};
var req = require('https').request(options);
req.end(JSON.stringify(params));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment