public void Login(string username, string password) { RequestBuilder _req = new RequestBuilder(doLogin); _req.By = RequestBuilder.Method.POST; _req.Referer = "http://forum.tirkx.com/main/index.php"; _req.Origin = "http://forum.tirkx.com"; _req.ContentType = "application/x-www-form-urlencoded"; _req.PostValue.Add("vb_login_username", username); _req.PostValue.Add("vb_login_password", ""); _req.PostValue.Add("vb_login_password_hint", "Password"); _req.PostValue.Add("cookieuser", "1"); _req.PostValue.Add("securitytoken", "guest"); _req.PostValue.Add("do", "login"); _req.PostValue.Add("vb_login_md5password", Tirkx.MD5(password)); _req.PostValue.Add("vb_login_md5password_utf", Tirkx.MD5(password)); //string respone = ConnectTirkx(doLogin, _req.ToString()); }
void getListAnime_DoWork(object sender, DoWorkEventArgs e) { List <Anime> listTirkx = new List <Anime>(); Tirkx WebMain = new Tirkx(); WebMain.Login("dvgamer", "dvg7po8ai"); string HashIings = ""; //GET /main/tirkx_anime_list_home.php HTTP/1.1 //Host: forum.tirkx.com //Connection: keep-alive //Cache-Control: max-age=0 //Accept: */* //User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 //X-Requested-With: XMLHttpRequest //Referer: http://forum.tirkx.com/main/index.php //Accept-Encoding: gzip,deflate,sdch //Accept-Language: th-TH,th;q=0.8,en-US;q=0.6,en;q=0.4,ca;q=0.2,es;q=0.2,fr;q=0.2,it;q=0.2,ko;q=0.2,ru;q=0.2,zh-CN;q=0.2,zh;q=0.2,zh-TW;q=0.2,ja;q=0.2 //Cookie: bb_lastvisit=1391255717; HstCfa2334126=1391255725439; HstCmu2334126=1391255725439; bb_lastactivity=0; bb_userid=22200; bb_password=8c6e72b898af1e4152d21345090a3203; stCla2334126=1392408099840; HstPn2334126=4; HstPt2334126=127; HstCnv2334126=28; HstCns2334126=45 // */ }