Created
June 1, 2020 14:07
-
-
Save keremtiryaki/17db046e4b14052b8805ce14a4c39e19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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