static void TryHttpClient() { string output = Curl.RunCode(baseAddress, path, content).GetAwaiter().GetResult(); Console.WriteLine("[OUTPUT]"); Console.WriteLine(output); Console.WriteLine("[/OUTPUT]"); }
static void TryWebClient() { string output = Curl.DoGetWebClient(url); Console.WriteLine("[OUTPUT]"); Console.WriteLine(output); Console.WriteLine("[/OUTPUT]"); }
static void TryWebRequest() { Curl curl = new Curl(); string redrectTo = null; string output = curl.DoGet(url, string.Empty, ref redrectTo); Console.WriteLine("[OUTPUT]"); Console.WriteLine(output); Console.WriteLine("[/OUTPUT]"); }