A big request not to throw stones but to write on the case or to throw off the link to the already prepared guides to create authorization on the site. I rummaged through all of Google - I didn’t find anything working (Hands are not from the back) by itself a novice coder on java, but I understand the structure of the code (What, where and on what depends). We need a ready-made example with a working post request, the only thing that I found even though it showed signs of life.
try { Connection.Response res1 = Jsoup.connect("http://site.ru") .data("login","admin") .data("passwd","admin") .data("send","Войти") .method(Connection.Method.POST) .execute(); Map loginCoockies = res1.cookies(); System.out.println(loginCoockies); Document doc = Jsoup.connect("http://site.ru") .cookies(loginCoockies) .get(); System.out.println(doc); } catch (IOException e) { System.out.println(e); } return null; After launch issues:
{PHPSESSID = t7idbm5jkr40ial25brvju72n2}
and html page code.
More precisely, after each press of the button gives PHPSESSID = (Always different). The html code page shows that I was never authorized.