
This bot converts cURL commands to C# code. https://curl.olsh.me/
This bot converts cURL commands to C# code
// In production code, don't destroy the HttpClient through using, but better use IHttpClientFactory factory or at least reuse an existing HttpClient instance // https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-requests // https://www.aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/ using (var httpClient = new HttpClient()) { using (var request = new HttpRequestMessage(new HttpMethod("GET"), "http://botostore/")) { var response = await httpClient.SendAsync(request); } }
Share bot
See also