You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi...
I need to read external http url which has data (can be of any extension xml,txt,ics). for eg: I downloaded the basic.xml to local . instead i need to read the file directly from url (https). can someone tel me how to read the content from external url?
fs.readFile('./public/basic.xml', 'utf8', function(err, data) {
if (err) {
console.log(err);
} else {
console.log(data);