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 added `joda time` via `File/Project Structure/Modules-App/Dependencies`.

[![enter image description here](https://i.stack.imgur.com/6IZw3.png)](https://i.stack.imgur.com/6IZw3.png)

Clicking on `+` and `Library dependency` brings you to the dialog:

[![enter image description here](https://i.stack.imgur.com/E53QW.png)](https://i.stack.imgur.com/E53QW.png)

Here you can search for joda and add the actual version to your project. If you add it this way you don't have to manually download the newest version from github or manually write something into your build.gradle file. Android Studio does it all for you.