laatzen/LaaProductionWeb/LaaProduction.Console/Program.cs
2024-06-26 08:05:20 +02:00

29 lines
810 B
C#

namespace LaaProduction.Console
{
using System;
using System.Collections.Generic;
using System.Net.Http;
public class Program
{
public static void Main(string[] args)
{
Console.ReadKey();
using (var request = new HttpRequestMessage(HttpMethod.Post, "http://localhost:57680/api.aspx?action=getlabel"))
{
request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
{
{ "BUILD_INFO", "816232411982" }
});
using (var response = new HttpClient().SendAsync(request).Result)
{
Console.WriteLine(response.Content.ReadAsStringAsync().Result);
}
}
}
}
}