spulec / uncurl

A library to convert curl requests to python-requests.
Apache License 2.0
607 stars 94 forks source link

-F not supported #21

Open deppfx opened 5 years ago

deppfx commented 5 years ago
$ uncurl "curl 'https://example.com/' -F 'master=@example.jpg;type=image/JPEG' -H 'X-Generate-Renditions: all' -H 'X-Create-Asset-Sync: 1' -H 'Authorization: Bearer xyz' -H 'X-Read-Meta: none'"
usage: uncurl [-h] [-d DATA] [-b DATA_BINARY] [-H HEADER] [--compressed]
              command url
uncurl: error: unrecognized arguments: -F master=@example.jpg;type=image/JPEG
nrizvi commented 5 years ago

getting the same error, I believe I may have found a solution but need to test it first

ArashHosseini commented 4 years ago

+1

stavhaco commented 3 years ago

Having the same issue

artempronevskiy commented 3 years ago

same on 0.0.11 version

jarun commented 3 years ago
$ uncurl "curl -F 'shorten=http://example.com/some/long/url' http://0x0.st"
usage: uncurl [-h] [-d DATA] [-b DATA_BINARY] [-X X] [-H HEADER] [--compressed] [-k] [--user USER] [-i] [-s]
              command url
uncurl: error: unrecognized arguments: -F http://0x0.st