olsh / curl-to-csharp

curl to C# converter
https://curl.olsh.me
MIT License
224 stars 42 forks source link

When there is an escape character double quotation mark in the data raw data, the escape character will be lost #154

Open shaofing opened 1 year ago

shaofing commented 1 year ago

curl --location --request POST 'https://xxxx.ddddd.com/Kmtqt.TMS.WebUI/api/UDFApi/SyncETCCost' \ --header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \ --header 'Content-Type: application/json' \ --data-raw '{ "token": "xxxxxxxxxxxxx", "sqlWhere": "SP_UDF1==\"kmt\"" }'

In the shell, \ is a line break, so the line break should be removed before parsing the data reference https://github.com/postmanlabs/curl-to-postman