CurlDotNet - 纯 .NET curl
已更新:
CurlDotNet是一个开源的.NET库,开发人员可以将curl命令直接粘贴到C#应用程序中--无需手动翻译。
Iron Software 荣幸地赞助了 CurlDotNet 以支持 .NET 开放源码社区。 由 Iron Software 的首席技术官兼联合创始人 Jacob Mellor 构建和维护。
快速入门。
dotnet add package CurlDotNetdotnet add package CurlDotNetSHELL
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$vbLabelText $csharpLabel

