How to get post parameter in node.js?

522 Views Asked by At

I'm using Node.js express and httpAsyncClient library in android.

I was send request to express use Post include parameter.

Request is does work. but I can't get parameter in Post

I used this " var id = req.body.id; "

I think httpAsyncClient parameter type is form-data. but express is handle x-www-form-urlencoded.

How can i do?

1

There are 1 best solutions below

0
On BEST ANSWER

You'll need to configure a body-parser middleware. After that you should be able to get some results.