Exemple #1
0
 public static void OnDebug(CurlInfoType infoType, string msg, int size, object extraData)
 {
     // print out received data only
     if (infoType == CurlInfoType.DataIn)
     {
         WriteLine(msg);
     }
 }
Exemple #2
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     // print out received data only
     if (infoType == CurlInfoType.DataIn)
     {
         Console.WriteLine(msg);
     }
 }
Exemple #3
0
        public static void OnDebug(CurlInfoType infoType, string message, int size, object extraData)
        {
            switch (infoType)
            {
            case CurlInfoType.Text:
                WriteLine($"== Info: {message.TrimEnd()}");
                break;

            case CurlInfoType.HeaderOut:
                WriteLine($"=> Send header");
                break;

            case CurlInfoType.HeaderIn:
                WriteLine($"<= Recv header");
                break;

            case CurlInfoType.DataOut:
                WriteLine($"=> Send data");
                break;

            case CurlInfoType.DataIn:
                WriteLine($"<= Recv data");
                break;

            case CurlInfoType.SslDataOut:
                WriteLine($"=> Send SSL data");
                break;

            case CurlInfoType.SslDataIn:
                WriteLine($"<= Recv SSL data");
                break;

            case CurlInfoType.End:
                WriteLine("== End");
                break;
            }
        }
Exemple #4
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     Console.WriteLine(msg);
 }
Exemple #5
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     Console.WriteLine(msg);
 }
Exemple #6
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     // print out received data only
     if (infoType == CurlInfoType.DataIn)
         Console.WriteLine(msg);
 }
Exemple #7
0
 private void OnDebug(CurlInfoType infoType, string msg, int size, object extraData)
 {
     LogLocal.log().SaveLog(new LogEntity("CURL-DEBUG:" + msg, LogType.Plat, LogLevel.DEBUG));
 }
Exemple #8
0
 public static void OnDebug(CurlInfoType infoType, string msg, int size, object extraData) => WriteLine(msg);