Android. Testing WordPress-login success with Java.

I am developing an Android application that is linked into a WordPress site. I am trying to give out users an authenticaton step that would require than to input their username and password into the app to authenticate the person has an account on the wordpress site.

I think I am logging in successfully to the site. When I put the correct username and password my output steam prints a UTF-8 encoded, what looks to be, web address

Read More

01-17 18:16:28.884: D/output(8231): redirect_to=http%3A%2F%2Fzoombella.crontab.se&log=curtis&pwd=password&wp-submit=Log+In.

If I purposely put it in wrong it returns the HTML of an entire webpage, most likely wp-login.php’s output.

My question is: How can I tell, through Java, that WordPress has been successfully logged into? Is there something in a header?

I have tested response codes, but since the site redirects on failure instead of returning a 4## error, I get 200 no matter what.

Related posts

Leave a Reply

1 comment