Transpile curl commands into Python, JavaScript and 27 other languages
BREAKING CHANGE: the JSON generator (curlconverter.toJsonString()
), when the request body can't be parsed as JSON or as a query string (when the Content-Type
header is set to application/json
or application/x-www-form-urlencoded
respectively), now outputs it as just a string, like this: "data": "unparsabledata"
. Previously, it would generate a one element dictionary with the data as the first key, like "data": {"unparsabledata": ""}
.
New generators:
Minor changes:
encodeURI()
--form
/-F
values (support quotes like --form 'name="some value"'
and parse out ;filename=
, ;type=
values. ;headers=
and ;encoder=
are not used by any generators)New code generators:
java
)Minor changes:
Actually prebuild binaries, installing should no longer require Python
Minor changes:
--next
(for Python, other languages use the first URL)--url-query
, --proto-default
, --http3-only
$
in strings being incorrectly interpreted as env variables--form
, --max-time
, --insecure
and --compressed
in GoMinor changes:
curlconverter -
follow_redirects
, timeout
, connect_timeout
and auth_type
/aws_sigv4
/delegation
--compressed
in C#ioutil.ReadAll
for io.ReadAll()
--range
--oauth2-bearer
--basic
and --time-cond
support to all converters--cookie-jar
--location
--location-trusted
--max-redirs
--max-time
--connect-timeout
--aws-sigv4
--negotiate
--delegation
--ntlm
and --ntlm-wb
support to Python--data
/--data-ascii
, --data-raw
, --data-binary
, --data-urlencode
and --json
--data-urlencode name@file
to a Python dictionary/list and other improvements${parameter_expansion}