nodeunit icon indicating copy to clipboard operation
nodeunit copied to clipboard

How to test post request with httputil?

Open itgirlalice opened this issue 10 years ago • 0 comments

Hi,

I would like to test my rest api using httputil, it work fine for get request, but for post and put with body request, what should i do? I read the source code, it just accept data in header, how can i pass my test data in body?

Any suggest will be appreciate.

Thanks, Alice

itgirlalice avatar Oct 12 '15 03:10 itgirlalice