CurlDotNet – Pure .NET curl
CurlDotNet is an open-source .NET library that lets developers paste curl commands directly into C# applications—no manual translation required.
Iron Software proudly sponsors CurlDotNet to support the .NET open-source community. Built and maintained by Jacob Mellor, CTO and Co-Founder of Iron Software.
Quick Start
dotnet add package CurlDotNet
dotnet add package CurlDotNet
using CurlDotNet;
// Paste any curl command directly from documentation
var result = await Curl.ExecuteAsync(
"curl -X GET https://api.github.com/users/octocat -H 'Accept: application/json'"
);
using CurlDotNet;
// Paste any curl command directly from documentation
var result = await Curl.ExecuteAsync(
"curl -X GET https://api.github.com/users/octocat -H 'Accept: application/json'"
);
IRON VB CONVERTER ERROR developers@ironsoftware.com
Why CurlDotNet?
CurlDotNet is implemented purely in C# with ZERO dependencies. More importantly, CurlDotNet supports and preserves cURL’s features and syntax faithfully. This means:
- Ease-of-Use - Copy and paste cURL commands from API docs, Stack Overflow, or the terminal and use them directly and in C# programs (no translation to HttpClient required!)
- Quick Migration - Move from using bash scripts for cURL-related tasks to C# with minimal effort
- No Learning Curve - Developers familiar with cURL can jump into CurlDotNet immediately
- Fully-Featured - Access all 300+ cURL options, handle authentication, proxies, retries, and file uploads easily!
Resources: Documentation | NuGet | GitHub
