I'm not able to do url encoded posts to my node.js API using restify. I have the following setup of my restify app:
app.use(restify.acceptParser(app.acceptable));
app.use(restify.queryParser());
app.use(restify.urlEncodedBodyParser());
But when I'm requesting my app using curl with the following request:
curl -X POST -H "Content-type: application/x-www-form-urlencoded" -d quantity=50 http://app:5000/feeds
I get the following input body in my view:
console.log(req.body) // "quantity=50"
Thanks in advance,
Mattias