i am making a http call to a api and i am using 'request' module for this to work.
for example:
var request = require('request');
request.get("http://www.google.com",
function (error, response, body){
if(error){
console.log(error);
}
else{
console.log(response);
}
});
when i call this function i get an error, 'connect ECONNREFUSED'.
google is working on my browser but thru code i am not getting connected. can you please help me with this