Question: So I'm working on an app that logs into my school's grade site, sending the URL encoded username and password form. The form data for a browser login is:

```
Database=10
LogOnDetails.UserName=yourusernamehere
LogOnDetails.Password=yourpasswordhere

```

I have edited my post to include my new code, which uses Apache's HttpClient. 

I've been informed by Amit that the code 200 OK is an appropriate response, even though it returns 302 FOUND in my browser. So, I attempted a get request at url the site redirects users to, but I only get the login page contents.

EDIT: It works. I have no idea how, but it works. I've submitted my code as an answer. I know I had a very hard time getting here, so anyone who sees this is welcome to copy my code on their own.

Answer: 
in app/build.gradle file, add like this-

```
dependencies {    
    compile 'joda-time:joda-time:2.9.4'
}

```

You don't need to do anything else.

You need the latest release, check out the release page <https://github.com/JodaOrg/joda-time/releases> and change the version accordingly.
I completely prefer to use `jitpack.io` repository.

In this case, you should get `GitHub` links of joda-time (just a simple search) and go to [Jitpack.IO](https://jitpack.io/) then search for the github link. 

After all, you should get this page and do the instructions.

<https://jitpack.io/#JodaOrg/joda-time/v2.9.4>

Just sync your gradle and all done...