spulec / uncurl

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

add --data-raw option to uncurl as chrome started using it #42

Closed zrthstr closed 3 years ago

zrthstr commented 3 years ago

This PR makes uncurl data-raw aware. #33 Recently chrome started giving me curl commands with the --data-raw flag. This caused uncurl to fail.

In accordance with curls man page an alias from data-raw to data-binary is sufficient. The only difference from data-binary to data-raw is that the latter would allow for the uploading of data from a local file to a server by referencing the file with '@'. This of course is something no browser will make use of so can ignore this case.

spulec commented 3 years ago

Looks great; thank you!