Exemplo n.º 1
0
        private void TestSendWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            String url     = machine.runtimeRegister["提交URL"];
            String method  = machine.runtimeRegister["提交方法"];
            String content = machine.runtimeRegister["提交内容"];

            try
            {
                HttpWebRequest req    = BomberUtils.MakeHttpRequest(url, content, method);
                string         result = BomberUtils.GetHttpResponse(req);
                testSendWorker.ReportProgress(0, result);
            }
            catch (Exception ex) {
                testSendWorker.ReportProgress(1, ex.Message);
            }
        }
Exemplo n.º 2
0
 private void Bomber_OnBomberComplete(object sender, BomberResultEventArgs e)
 {
     cnt++;
     Console.Title = cnt.ToString();
     BomberUtils.PrintResult(e.UsesUser, e.UsesPassword, e.ReturnValue);
 }