خرید بک لینک

Vote count: 0

I go to: https://www.cgv.vn/vn/theaters/showtimes/ and get urlLogin. After, I'm trying to log into urlLogin;

Document doc = Jsoup.coect("https://www.cgv.vn/vn/theaters/showtimes/").get();

            Element element = doc.getElementById("top_register");

            //Get url login
            String urlLogin = element.childNode(0).attr("href");

            Coection.Response loginForm = Jsoup.coect(urlLogin)
                    .method(Coection.Method.GET)
                    .execute();

            Document document = Jsoup.coect(urlLogin)
                    .data("login[useame]", "ABC")
                    .data("login[password]", "ABC")
                    .data("cookieexists", "false")
                    .data("form_key", "WrToMuENMoOq8ZA3")
                    .data("form_key_test", "WrToMuENMoOq8ZA3")
                    .data("send", "")
                    .cookies(loginForm.cookies())
                    .post();

            //a page you want to load after login
            String url = "https://www.cgv.vn/vn/customer/account/";

            Document fpl = Jsoup.coect(url)
                    .timeout(5000)
                    .cookies(loginForm.cookies())
                    .get();
           String body = fpl.body().toString();

            Log.e("test", body);

Unfortunately, this simply retus the same page in a not-logged-in state. What am I doing wrong?

asked 55 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 15 ارديبهشت 1395 ساعت: 10:12

صفحه بندی