olsh/curl-to-csharp

Parameter "--location" is not supported

shaofing opened this issue · 5 comments

I use postman to generate curl command, which contains "--location"
QQ截图20220406154919

curl --location --request POST 'http://localhost:5001/api/SCMBaseService/GetUdfButtons' \ --header 'Content-Type: application/json' \ --data-raw '{ "v": { "SysId": "OMS", "ModelName": "Purchase" }, "lg": "zh_cn", "tk": "09ff6d32-bfa0-45dd-ae75-51d136f48c04" }'

Please update nuget

olsh commented

Hi @shaofing

Thank you for the opening issue. Yes, the --location parameter is not supported yet.

Please update nuget

Which nuget?

think you......
1,Will the support of --location be added
2, https://www.nuget.org/packages/CurlParser

olsh commented

1,Will the support of --location be added

If I have spare time for this. But PR is welcome.

2, https://www.nuget.org/packages/CurlParser

This repository doesn't provide any NuGet packages yet, so this is a "non-official" package.

I'll try it .
think you.