Endpoint for logging in?
<p>JSoup Login to website AND then open another page KEEPING that login session.</p>
<p>Could anyone explain how to log in on <a href="http://www.rlo.nl/roostersinfoweb/infoweb/index.php" rel="nofollow noreferrer">this website</a> using JSoup?</p>
<p>My code currently (Completely fails, I'm sure I'm on the wrong 'track'):</p>
<pre><code>Connection.Response loginForm = Jsoup.connect(&quot;http://www.rlo.nl/roostersinfoweb/infoweb/index.php&quot;)
.method(Connection.Method.GET)
.execute();


Document doc = Jsoup.connect(&quot;http://www.rlo.nl/roostersinfoweb/infoweb/index.php&quot;).get();Jsoup.connect(&quot;http://www.rlo.nl/roostersinfoweb/infoweb/authentication.php&quot;)
.data(&quot;cookieexists&quot;, &quot;false&quot;)
.data(&quot;username&quot;, &quot;110&quot;)
.data(&quot;password&quot;, &quot;sgl16&quot;)
.data(&quot;login&quot;, &quot;Login&quot;)
.cookies(loginForm.cookies())
.post();
</code></pre>
<p>One thing I'm sure of: authentication.php doesn't exist.</p>
<p>I am new to JSoup, so please explain some code and tell me about the 'cookie' part (I know what cookies are, but not how you use them with JSoup.)</p>