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

--data-raw not supported #8

Closed
atymic opened this issue Oct 9, 2022 · 2 comments
Closed

--data-raw not supported #8

atymic opened this issue Oct 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@atymic
Copy link

atymic commented Oct 9, 2022

Many tools such as postman use data-raw. Maybe worth adding support for this, esp for json requests?

curl --request POST 'https://api.com' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messages": [
        "a",
        "b",
        "c"
    ]
}'
@jasonmccreary jasonmccreary added the enhancement New feature or request label Oct 10, 2022
@jasonmccreary
Copy link
Collaborator

Good one. I'll get this added in the coming weeks. However, it shouldn't be too hard to implement if you (or another reader) wants to submit a PR.

dnkmdg pushed a commit to ikoncept/curl-converter that referenced this issue Oct 13, 2022
@jasonmccreary
Copy link
Collaborator

Initial support was added in #15. We'll see how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants