Added setDoOutput to the POST method because android is stupid.