CurlParser 1.0.0
CurlParser
A cURL parser based on curl-to-csharp project for .NET Core.
Supported platforms:
- For ASP.NET Core 5, .NET 5
- For ASP.NET Core 3, .NET Core 3.0
Key Features
- Parse cURL command into individual cURL options.
- Return parsing errors and warnings if the cURL input is invalid.
Installation
Install with NuGet
dotnet add package CurlParser
Usage/Examples
var input = @"curl https://sentry.io/api/0/projects/1/groups/?status=unresolved -d '{""status"": ""resolved""}' -H 'Content-Type: application/json' -u 'username:password' -H 'Accept: application/json' -H 'User-Agent: curl/7.60.0'";
var output = new Parser(new ParsingOptions() { MaxUploadFiles = 10 }).Parse(input);
Console.WriteLine(output.Data.UploadData.First().Content);
// Output:
// {"status": "resolved"}
No packages depend on CurlParser.
.NET Core 3.1
- No dependencies.
.NET 5.0
- No dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,989 | 04/14/2022 |
0.1.203 | 3 | 01/03/2025 |
0.1.170 | 4 | 01/03/2025 |
0.1.170-PullRequest0002.2 | 1 | 01/03/2025 |
0.1.169 | 4 | 01/03/2025 |