uncurl icon indicating copy to clipboard operation
uncurl copied to clipboard

unrecognized arguments: --request --url

Open yogidevendra opened this issue 4 years ago • 2 comments

/.venv/bin/uncurl "curl --request POST
--url http://localhost:8080/customer
--header 'Content-Type: application/json'
--data '{ "customer": { "customer_id": "1", "customer_type": "regular" } }'" usage: uncurl [-h] [-d DATA] [-b DATA_BINARY] [-X X] [-H HEADER] [--compressed] [-k] [--user USER] [-i] [-s] command url uncurl: error: unrecognized arguments: --request --url http://localhost:8080/customer

yogidevendra avatar Jul 26 '21 19:07 yogidevendra

I use insomnia/postman for http request. I copied one of my POST request and exported it as curl command from insomnia. The structure of the generated curl command is given above. Input for this curl command breaks the uncurl tool.

Specifically --request, --url are causing some trouble.

Tried on version 0.0.11

yogidevendra avatar Jul 26 '21 19:07 yogidevendra

Also tried with python code instead of CLI. It had similar behaviour.

yogidevendra avatar Jul 26 '21 20:07 yogidevendra