Convert

Convert cURL to C# HttpClient — Free Online

Generate .NET HttpClient code from cURL for ASP.NET Core, Unity, and desktop applications.

Output

Uses HttpRequestMessage with headers, StringContent for body, and SendAsync for any HTTP method.