I am making a post request using "request" module in node js like this:
request.post({url: 'http://localhost:4004/api/v1/notifications/post', form: {msg:msg, userID:userID}}, function(err, httpResponse, body){
if(err) return 0;
else return 1;
});
no the server side I get the request, however the parameters do not come. What am I doing wrong?