http
和https
模块相当于nlapiRequestURL()
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示例
var response = https.get({ url: url, headers: headers });