caolan / caolan/nodeunit

How to test post request with httputil?

Open
#307 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.