http-prompt icon indicating copy to clipboard operation
http-prompt copied to clipboard

Is it possible to use a multiline body for POSTs?

Open wsw70 opened this issue 9 years ago • 2 comments

I would like to make the following request with a multiline body:

POST /myapi
{
    "a": true
}

Is this possible with http-prompt?

wsw70 avatar Sep 08 '16 17:09 wsw70

@wsw70 ,

if you mean defining request data (query/body) across multiple lines in the http-prompt console, it's not currently possible.

if you want to send json data object, you can use --json httpie option..:

locahost/myapi> post a=true b=false --json

fogine avatar Sep 08 '16 21:09 fogine

This feature should be a subset of #75.

eliangcs avatar Sep 09 '16 06:09 eliangcs