if request method is post, then read body and json parse it into req.par...

...ams ... I didn t find an easy way to do a POST request using mock http. 

I ve created test/mock.js a simple http server using no rest and you can send a post request using:

curl --data '[{"when":"2","type":"script","url":"sdfsdfsddfsfd","id_campaign":"7"},{"when":"1","type":"image","url":"http://impression-pixel1.com","id_campaign":"7"}]' http://localhost:8888/lol