amingolmahalle / HttpClientToCurlGenerator

The HttpClientToCurl is a NuGet package for generating curl script of HttpClient in .NET ( C# | CSharp | Dotnet ) supported features: Post, Get, Put, and Delete. content types: application/json, text/xml, application/x-www-form-urlencoded
https://www.nuget.org/packages/HttpClientToCurl
MIT License
51 stars 11 forks source link

Quote the URL #23

Closed kokoabim closed 5 months ago

kokoabim commented 6 months ago

On the outputted cURL command-line, add quotes around the URL to prevent characters like ? and & being handled by a shell.

Example: Instead of curl https://foo.com?bar=baz&red=sox, change it to be curl 'https://foo.com?bar=baz&red=sox'

Without quoting, every command-line with characters like these must be edited prior to execution.

amingolmahalle commented 6 months ago

Thank you dear @kokoabim I agree with you.

Sabermotamedi commented 6 months ago

I will make this changes, assign it to me