You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of my collaborators use Postman, which can import cURL commands. Using curlify to send a request from my debugger to them to reproduce is very useful.
However, curlify generates empty -d '' options which appear to be unnecessary (e.g. for a plain GET request). Postman fails to import these unedited commands with an (admittedly nonsensical) error: Error while importing Curl: 0 option-less arguments found. Only one is supported (the URL)
Postman should in my opinion tolerate this better, however I doubt the -d '' is semantically necessary for curlify to generate.
Could you consider removing any options that result in an empty string from the output?
The text was updated successfully, but these errors were encountered:
I had to wrap the params for the d option in quotes - otherwise postman fails on it with the same error
my query: curl -X POST -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'Content-Length: 474' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Cookie: ColinsCuriousCookie=COOKIE' -H 'User-Agent: python-requests/2.22.0' -d item=%7BDATA%7B%27ColinsCuriousCookie%27%3A+%27 16a71d3a-e99d-11e9-88c6-0a5fb865b0dc%27%7D%7D https://api-v4-development.key2key.net/queue/v1/queues/customerservice0
Many of my collaborators use Postman, which can import cURL commands. Using curlify to send a request from my debugger to them to reproduce is very useful.
However, curlify generates empty
-d ''
options which appear to be unnecessary (e.g. for a plain GET request). Postman fails to import these unedited commands with an (admittedly nonsensical) error:Error while importing Curl: 0 option-less arguments found. Only one is supported (the URL)
Postman should in my opinion tolerate this better, however I doubt the
-d ''
is semantically necessary for curlify to generate.Could you consider removing any options that result in an empty string from the output?
The text was updated successfully, but these errors were encountered: