curl-to-csharp icon indicating copy to clipboard operation
curl-to-csharp copied to clipboard

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

Open shaofing opened this issue 2 years ago • 0 comments

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

shaofing avatar Nov 07 '23 11:11 shaofing