node.js - Runscope – How can I send a JSON body with my POST request? -
i'm using runscope test node/express app , can't figure out how send json body via post request in runscope. i've tried can't parsed express bodyparser. json i'm want send looks this:
{ "variable1":"value1", "variable2": { "variable3": "value2" } }
i tried request json body , seems work me against "echo" api. have created shared request can see request looks here.
try this,
go traffic inspector, , click "new request". take request editor. select post instead of , come in url of node express app. click on "add json" , add together json info in "request data" field. click launch request. node.js express runscope
No comments:
Post a Comment