Example #1
0
    /// <summary>
    /// Starts a new client session.
    /// </summary>
    /// <param name="args">The command line arguments.</param>
    static void Main(string[] args)
    {
        Console.WriteLine("This test class implements a small HTTP client that supports HTTP and HTTPS.\r\n");
        WebClient c = new WebClient();

        try {
            c.Start();
        } catch (Exception e) {
            Console.WriteLine(e);
        }
        Console.WriteLine("\nPress ENTER to continue...");
        Console.ReadLine();
    }
Example #2
0
 /// <summary>
 /// Starts a new client session.
 /// </summary>
 /// <param name="args">The command line arguments.</param>
 static void Main(string[] args)
 {
     Console.WriteLine("This test class implements a small HTTP client that supports HTTP and HTTPS.\r\n");
     WebClient c = new WebClient();
     try {
         c.Start();
     } catch (Exception e) {
         Console.WriteLine(e);
     }
     Console.WriteLine("\nPress ENTER to continue...");
     Console.ReadLine();
 }