29 lines
810 B
C#
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);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|