Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPie JSON array syntax doesn’t work #80

Open
natesilva opened this issue Mar 5, 2024 · 0 comments
Open

HTTPie JSON array syntax doesn’t work #80

natesilva opened this issue Mar 5, 2024 · 0 comments

Comments

@natesilva
Copy link

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:

{
    "tables[]": "users"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant