(connection).setRequestMethod("POST");
connection.setDoOutput(true);
connection.setDoInput(true);//Only if you expect to read a response...
connection.setUseCaches(false);//Highly recommended...
connection.setAllowUserInteraction(true);
connection.setFollowRedirects(true);
connection.setInstanceFollowRedirects(true);
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");