Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                configFileName = args[0];
            }

            ConfigPOST config = ConfigPOST.getConfigPOST(configFileName);

            byte[] xmlData = getBytesForPOST(config);
            logFileName = ConfigPOST.OUT_DIR + "ConsolePOST_" + DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss") + ".log";

            double byteLen = xmlData.Length;

            printLine("POSTing " + Math.Round(byteLen / 1024 / 1024, 2) + " MB (total) to:");
            printLine(config.StringURL + Environment.NewLine);

            doMultiPartPOSTs(xmlData, config);
            Console.Out.WriteLine("\n Press enter to exit.");
            Console.In.Read();
        }