示例#1
0
        static void TryHttpClient()
        {
            string output = Curl.RunCode(baseAddress, path, content).GetAwaiter().GetResult();

            Console.WriteLine("[OUTPUT]");
            Console.WriteLine(output);
            Console.WriteLine("[/OUTPUT]");
        }
示例#2
0
        static void TryWebClient()
        {
            string output = Curl.DoGetWebClient(url);

            Console.WriteLine("[OUTPUT]");
            Console.WriteLine(output);
            Console.WriteLine("[/OUTPUT]");
        }
示例#3
0
        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]");
        }