http-prompt
http-prompt copied to clipboard
Is it possible to use a multiline body for POSTs?
I would like to make the following request with a multiline body:
POST /myapi
{
"a": true
}
Is this possible with http-prompt?
@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
This feature should be a subset of #75.