With HTTPie and xh, I can pass in a JSON item as an array:
xh -v httpbin.org/post tables[]=users
# or
http -v httpbin.org/post tables[]=users
This sends a JSON object:
{
"tables": [
"users"
]
}
This syntax doesn’t work in curlie. It sends this instead:
With HTTPie and
xh, I can pass in a JSON item as an array:xh -v httpbin.org/post tables[]=users # or http -v httpbin.org/post tables[]=usersThis sends a JSON object:
{ "tables": [ "users" ] }This syntax doesn’t work in
curlie. It sends this instead:{ "tables[]": "users" }