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

Research direction

The issue names httputil but no repository file, test, or entry point. Start by locating existing GET-request testing guidance, then define the expected POST and PUT body behavior before determining whether documentation or code changes are needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, testing-qa
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.