Ejemplo n.º 1
0
    public static void run(String[] args)
    {
        try {
            Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);

            VersionInfoData vd = Curl.GetVersionInfo(CURLversion.CURLVERSION_NOW);
            Console.WriteLine("           Age: {0}", vd.Age);
            Console.WriteLine("Version String: {0}", vd.Version);
            Console.WriteLine("Version Number: {0}", vd.VersionNum);
            Console.WriteLine("   Host System: {0}", vd.Host);
            Console.WriteLine("Feature Bitmap: {0}", vd.Features);
            Console.WriteLine("   SSL Version: {0}", vd.SSLVersion);
            Console.WriteLine("SSL VersionNum: {0}", vd.SSLVersionNum);
            Console.WriteLine("  LibZ Version: {0}", vd.LibZVersion);
            Console.WriteLine("  ARES Version: {0}", vd.ARes);
            Console.WriteLine("  ARES Ver Num: {0}", vd.AResNum);
            Console.WriteLine("LibIDN Version: {0}", vd.LibIDN);
            Console.WriteLine();
            Console.WriteLine("Protocols:");
            String[] protocols = vd.Protocols;
            foreach (String prot in protocols)
            {
                Console.WriteLine("  {0}", prot);
            }

            Curl.GlobalCleanup();
        }
        catch (Exception ex) {
            Console.WriteLine(ex);
        }
    }
Ejemplo n.º 2
0
    public static void Main(String[] args)
    {
        try
        {
            Curl.GlobalInit(CurlInitFlag.All);

            var vd = Curl.GetVersionInfo(CurlVersion.Now);
#if USE_LIBCURLSHIM
            Console.WriteLine("           Age: {0}", vd.Age);
            Console.WriteLine("Version String: {0}", vd.Version);
            Console.WriteLine("Version Number: {0}", vd.VersionNum);
            Console.WriteLine("   Host System: {0}", vd.Host);
            Console.WriteLine("Feature Bitmap: {0}", vd.Features);
            Console.WriteLine("   Ssl Version: {0}", vd.SslVersion);
            Console.WriteLine("Ssl VersionNum: {0}", vd.SSLVersionNum);
            Console.WriteLine("  LibZ Version: {0}", vd.LibZVersion);
            Console.WriteLine("  ARES Version: {0}", vd.ARes);
            Console.WriteLine("  ARES Ver Num: {0}", vd.AResNum);
            Console.WriteLine("LibIdn Version: {0}", vd.LibIdn);
            Console.WriteLine();
            Console.WriteLine("Protocols:");
            var protocols = vd.Protocols;
            foreach (var prot in protocols)
            {
                Console.WriteLine("  {0}", prot);
            }
#endif
            Curl.GlobalCleanup();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex);
            Console.ReadLine();
        }
    }