Example #1
-1
        public override void Start()
        {
            // LOGIN 
            
            RequestBuilder doLogin = new RequestBuilder("forum.tirkx.com/main/login.php?do=login");
            doLogin.By = RequestBuilder.Method.POST;
            doLogin.CacheControl = "max-age=0";
            doLogin.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8";
            doLogin.Origin = "http://forum.tirkx.com";
            doLogin.ContentType = "application/x-www-form-urlencoded";
            doLogin.Referer = "http://forum.tirkx.com/main/forum.php";

            doLogin.AddBody("vb_login_username", Username);
            doLogin.AddBody("vb_login_password", "");
            doLogin.AddBody("vb_login_password_hint", "Password");
            doLogin.AddBody("cookieuser", "1");
            doLogin.AddBody("s", "");
            doLogin.AddBody("securitytoken", "guest");
            doLogin.AddBody("do", "login");
            doLogin.AddBody("vb_login_md5password", Password);
            doLogin.AddBody("vb_login_md5password_utf", Password);

            Trikx = new XHR();
            //Trikx.AsyncSend(doLogin, true);

            //Trikx.AsyncReceive();
            //Trikx.WaitResponse();

            doLogin.Clear();

            base.Start();
        }