i need some pointers here. So basically what I've done is i've created a form to be used to login to a web server. So, from the response code i am able to get a status code of 200 through wireshark. The normal path of this browser login system is
password + id > index.php >(if true) > index2.php but, on the android app, apparently it does not redirect though, i'm not sure if its suppose to? I've tried using Jsoup.connect(URL).cookie(sessionid which i don't know why, is always null).get(); but as it is always null, it is not going to work. The cookie header if correct is "PHPSESSID=somenumiericavalue" or am i looking at the wrong thing from wireshark? and another thing, as i've said i tried using Jsoup.connect method and also HttpURLConnection also, following Android HTTP login questions but, when it comes to the part where i need to check the header and value i'm lost :(.
if(response.getStatusLine().getStatusCode() == 200){
HttpEntity entity = response.getEntity();
Log.d("login", "success!");
if(entity != null){
cookies = client.getCookieStore();
i'm lost here when Pompe says do some more stuff. Absolute lost here. Another part is the next part where it uses wireshark. lost too. :(