You need to send a request to the site: log in on it, and then interact with the pages of it.

I don’t know how to implement this in Java, such as through POST, but I don’t know all the pitfalls, but can it be done through the Jsoup library? I would like to see an example. Thank)

Here is a part of the authorization code on the site:

<table border=0 cellspacing=2 cellpadding=2> <tr> <td>Ваше Имя:</td> <td colspan=2><input type=text name=login value='' maxlength=20 style='width:155;'></td> </tr><tr> <td>Пароль:</td> <td><input type=password name=pass value='' maxlength=20 style='width:120;'></td> <td><img border=0 src="i/keyboard2.gif" style='cursor: hand' onClick="KeypadShow();"></td> </tr> <tr> <td colspan=3 align=center><input type=submit value='Войти' class="wbtn" style="width:80;"></td></tr> <tr> <td colspan=3 align=center><input type=button class='wbtn' value='Регистрация' onclick='window.location="reg.php"'></td> </tr></table> 

    2 answers 2

    Where is the initial form tag? There must be specified in the attribute attribute.

    An example of POST , there are still a couple of links to parsing cookies in the responses.

      Well, without the magic of Jsoup .....

      How do I understand this library you are going to use in an Android application ?? If yes, then it is better to use HttpClient which is already built into all versions of the bucket. And can send POST request. And to work with headers in which in each request a certain sign is indicated by which, it is possible to determine something or another user is registered, which is important for authorization.

      Do not add extra libraries to the Android application, they are not needed there)

      Additional information about HttpClient - here