laravel-shift / curl-converter

Online tool to convert `curl` requests to Laravel `Http` requests
MIT License
88 stars 10 forks source link

`--data-raw` not supported #8

Closed atymic closed 2 years ago

atymic commented 2 years ago

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 commented 2 years ago

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.

jasonmccreary commented 2 years ago

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