Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     // print out received data only
     if (infoType == CurlInfoType.DataIn)
     {
         Console.WriteLine(msg);
     }
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 4
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     Console.WriteLine(msg);
 }
Exemplo n.º 5
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     Console.WriteLine(msg);
 }
Exemplo n.º 6
0
 public static void OnDebug(CurlInfoType infoType, String msg, Object extraData)
 {
     // print out received data only
     if (infoType == CurlInfoType.DataIn)
         Console.WriteLine(msg);
 }
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 public static void OnDebug(CurlInfoType infoType, string msg, int size, object extraData) => WriteLine(msg);