I am trying to send a http get request using node js but for some reason, I get status 500. I checked it on postman and it works fine but in node js , I keep getting this error 500. What could I be doing wrong? The request is supposed to return me a string and this is just for testing purposes. This is what I tried so far,
var re = require('request');
re.get('http://172.10.3.16/testphpbot/core.php?username=jay&tweetid=111&tweettext=hi&tweettime=147852369&source=facebook&receiver=1',function(err,res,body){
console.log("statuscode",res.statusCode);
});
On testing from POSTMAN - I get the following string - " You said hi on facebook"
via Rachel Morris
No comments:
Post a Comment