Moduleshttpand are httpsequivalentnlapiRequestURL()
SIMPLE SIMPLE HTTP
var response = http.get({
url: 'http://www.google.com',
headers: headers
});
var response = https.post({
url: 'http://www.google.com',
body: myPostDataObj,
headers: headers
});
HTTPS example
var response = https.get({
url: url,
headers: headers
});
source
share